From 760aac506f65f3d4c6765f545ad6444bd086b859 Mon Sep 17 00:00:00 2001 From: Parker Date: Sun, 14 Apr 2024 20:31:05 -0500 Subject: Create/Implement `CheckPlayerError` error class --- code/global_variables.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'code/global_variables.py') 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__() -- cgit v1.2.3-70-g09d2