mirror of
https://github.com/wlinator/luminara.git
synced 2024-10-03 00:03:13 +00:00
28 lines
623 B
Python
28 lines
623 B
Python
from discord.ext import commands
|
|
|
|
|
|
class NotAllowedInChannel(commands.CheckFailure):
|
|
"""
|
|
Raised when checks.allowed_in_channel() fails.
|
|
"""
|
|
|
|
def __init__(self, commands_channel):
|
|
self.command_channel = commands_channel
|
|
|
|
|
|
class BirthdaysDisabled(commands.CheckFailure):
|
|
"""
|
|
Raised when the birthdays module is disabled in ctx.guild.
|
|
"""
|
|
|
|
pass
|
|
|
|
|
|
class LumiException(commands.CommandError):
|
|
"""
|
|
A generic exception to raise for quick error handling.
|
|
"""
|
|
|
|
def __init__(self, message="An error occurred."):
|
|
self.message = message
|
|
super().__init__(message)
|