diff options
author | Parker <contact@pkrm.dev> | 2024-04-14 20:31:05 -0500 |
---|---|---|
committer | Parker <contact@pkrm.dev> | 2024-04-14 20:31:05 -0500 |
commit | 760aac506f65f3d4c6765f545ad6444bd086b859 (patch) | |
tree | 3a4907ac0418bcf38d4cf7ed2f980834fbe95cd4 /code/global_variables.py | |
parent | 3c66d50822caf7959bb85a17e93aa03bc6c3639b (diff) |
Create/Implement `CheckPlayerError` error class
Diffstat (limited to 'code/global_variables.py')
-rw-r--r-- | code/global_variables.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/code/global_variables.py b/code/global_variables.py index 1507f7a..d2cbab4 100644 --- a/code/global_variables.py +++ b/code/global_variables.py @@ -57,3 +57,9 @@ BOT_INVITE_LINK = config["BOT_INFO"]["BOT_INVITE_LINK"] LAVALINK_HOST = config["LAVALINK"]["HOST"] LAVALINK_PORT = config["LAVALINK"]["PORT"] LAVALINK_PASSWORD = config["LAVALINK"]["PASSWORD"] + + +class CheckPlayerError(discord.app_commands.AppCommandError): + def __init__(self, info) -> None: + self.info = info + super().__init__() |