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:
parent
104aab3681
commit
1d69f3fe25
1 changed files with 2 additions and 2 deletions
|
@ -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.
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in a new issue