mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-06 01:12:33 -05:00
check both connect and speak permissions before performing audio actions (#5012)
This commit is contained in:
@@ -549,5 +549,10 @@ class MixinMeta(ABC):
|
||||
async def icyparser(self, url: str) -> Optional[str]:
|
||||
raise NotImplementedError()
|
||||
|
||||
@abstractmethod
|
||||
async def self_deafen(self, player: lavalink.Player) -> None:
|
||||
raise NotImplementedError()
|
||||
|
||||
@abstractmethod
|
||||
def can_join_and_speak(self, channel: discord.VoiceChannel) -> bool:
|
||||
raise NotImplementedError()
|
||||
|
||||
Reference in New Issue
Block a user