aboutsummaryrefslogtreecommitdiffstats
path: root/bot/utils/exceptions.py
diff options
context:
space:
mode:
authorGravatar Xithrius <[email protected]>2021-12-15 14:32:23 +0000
committerGravatar GitHub <[email protected]>2021-12-15 14:32:23 +0000
commit451c6cc286d52b4b38060b0864eb675b5a4a4f5b (patch)
treeb6626c941444c0f1d7f8eba81ae9ec49da2af399 /bot/utils/exceptions.py
parentMerge pull request #974 from python-discord/fix-message-converter (diff)
parentMerge branch 'main' into yank-lovefest-sub (diff)
Merge pull request #971 from onerandomusername/yank-lovefest-sub
Diffstat (limited to 'bot/utils/exceptions.py')
-rw-r--r--bot/utils/exceptions.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/bot/utils/exceptions.py b/bot/utils/exceptions.py
index bf0e5813..3cd96325 100644
--- a/bot/utils/exceptions.py
+++ b/bot/utils/exceptions.py
@@ -15,3 +15,10 @@ class APIError(Exception):
self.api = api
self.status_code = status_code
self.error_msg = error_msg
+
+
+class MovedCommandError(Exception):
+ """Raised when a command has moved locations."""
+
+ def __init__(self, new_command_name: str):
+ self.new_command_name = new_command_name