Discord-Bot-Python/exceptions/__init__.py
2023-01-23 14:29:07 +02:00

13 lines
389 B
Python

from discord.ext import commands
class UserBlacklisted(commands.CheckFailure):
def __init__(self, message="User is blacklisted!"):
self.message = message
super().__init__(self.message)
class UserNotOwner(commands.CheckFailure):
def __init__(self, message="User is not an owner of the bot!"):
self.message = message
super().__init__(self.message)