mirror of
https://github.com/UiO-Gaming/ShiteMusicBot.git
synced 2026-11-06 14:24:30 +01:00
Restructures the music cog into a module Renames cogs to cogmanager Fixes subcommand help invocation More to assignment expressions in settings
21 lines
568 B
Python
21 lines
568 B
Python
# define Python user-defined exceptions
|
|
# Discord Packages
|
|
from discord.ext.commands import CommandError
|
|
|
|
|
|
class WrongChannelError(CommandError):
|
|
def __init__(self, e: str, channels=None):
|
|
self.original = e
|
|
self.channels = channels
|
|
super().__init__()
|
|
|
|
|
|
class WrongVoiceChannelError(WrongChannelError):
|
|
def __init__(self, e: str, channels=None):
|
|
super().__init__(e, channels=channels)
|
|
|
|
|
|
class WrongTextChannelError(WrongChannelError):
|
|
def __init__(self, e: str, channels=None):
|
|
super().__init__(e, channels=channels)
|