[Mod] Added voice kicking. (#2639)

* Added voice kicking.

* Reversed exceptions.

* Lets use a check that works for this task 👀

* Update abc.py

* Black formatting
This commit is contained in:
Kowlin
2019-05-03 16:08:25 +02:00
committed by Michael H
parent 16990071cb
commit 9414de24d4
3 changed files with 63 additions and 0 deletions

View File

@@ -20,6 +20,13 @@ class MixinMeta(ABC):
self.ban_queue: List[Tuple[int, int]]
self.unban_queue: List[Tuple[int, int]]
@staticmethod
@abstractmethod
async def _voice_perm_check(
ctx: commands.Context, user_voice_state: Optional[discord.VoiceState], **perms: bool
) -> bool:
raise NotImplementedError()
@classmethod
@abstractmethod
async def get_audit_entry_info(