1
Fork 0
mirror of https://github.com/wlinator/luminara.git synced 2024-10-02 18:23:12 +00:00

refactor: Update LumiException class to inherit from app_commands.AppCommandError

This commit is contained in:
wlinator 2024-09-01 08:06:13 -04:00
parent 104aab3681
commit 1d69f3fe25

View file

@ -10,7 +10,7 @@ class BirthdaysDisabled(commands.CheckFailure, app_commands.CheckFailure):
""" """
class LumiException(commands.CommandError): class LumiException(commands.CommandError, app_commands.AppCommandError):
""" """
A generic exception to raise for quick error handling. A generic exception to raise for quick error handling.
""" """
@ -23,7 +23,7 @@ class LumiException(commands.CommandError):
return self.message return self.message
class Blacklisted(commands.CommandError): class Blacklisted(commands.CommandError, app_commands.AppCommandError):
""" """
Raised when a user is blacklisted. Raised when a user is blacklisted.
""" """