Discord-Bot-Python/exceptions/__init__.py

13 lines
389 B
Python
Raw Normal View History

2023-01-23 07:29:07 -05:00
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)