[docs]classIncompatibleException(EnvironmentError):"""Command raised when an incompatible cog is already loaded"""
[docs]classMediaPlayerError(commands.CommandError):""" Base class for all media player errors. """
[docs]classUnauthorizedChannelError(MediaPlayerError):""" Raised when a command is used in a channel that is not authorized. """def__init__(self,channel:int):self.channel=channel
[docs]classMediaPlayerCheckError(MediaPlayerError):""" Base class for all check errors. """
[docs]classMediaPlayerNotFoundError(MediaPlayerCheckError,commands.CheckFailure):""" Raised when a media player is not found. """def__init__(self,context:PyLavContext)->None:self.context=context
[docs]classNotDJError(MediaPlayerCheckError,commands.CheckFailure):""" Raised when user does not have DJ Perms. """def__init__(self,context:PyLavContext)->None:self.context=context