✨ reworking a bunch of stuff
This commit is contained in:
11
gwendolyn_old/exceptions.py
Normal file
11
gwendolyn_old/exceptions.py
Normal file
@ -0,0 +1,11 @@
|
||||
"""Exceptions for Gwendolyn"""
|
||||
|
||||
class GameNotInDatabase(Exception):
|
||||
def __init__(self, game: str, channel: str):
|
||||
self.message = f"There is no {game} game in channel {channel}"
|
||||
super().__init__(self.message)
|
||||
|
||||
class InvalidInteraction(Exception):
|
||||
def __init__(self, custom_id: str, decoded: str):
|
||||
self.message = f"{custom_id = }, {decoded = }"
|
||||
super().__init__(self.message)
|
Reference in New Issue
Block a user