check both connect and speak permissions before performing audio actions (#5012)

This commit is contained in:
Draper
2021-05-19 21:29:40 +01:00
committed by GitHub
parent f3231682b0
commit 994137426f
7 changed files with 38 additions and 18 deletions

View File

@@ -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()