mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-07 09:52:30 -05:00
discord.py 2.0 update (3d914e08->2.0.1) (#5709)
This commit is contained in:
@@ -196,7 +196,9 @@ class MixinMeta(ABC):
|
||||
async def is_query_allowed(
|
||||
self,
|
||||
config: Config,
|
||||
ctx_or_channel: Optional[Union[Context, discord.TextChannel, discord.Thread]],
|
||||
ctx_or_channel: Optional[
|
||||
Union[Context, discord.TextChannel, discord.VoiceChannel, discord.Thread]
|
||||
],
|
||||
query: str,
|
||||
query_obj: Query,
|
||||
) -> bool:
|
||||
@@ -250,7 +252,9 @@ class MixinMeta(ABC):
|
||||
raise NotImplementedError()
|
||||
|
||||
@abstractmethod
|
||||
def _has_notify_perms(self, channel: Union[discord.TextChannel, discord.Thread]) -> bool:
|
||||
def _has_notify_perms(
|
||||
self, channel: Union[discord.TextChannel, discord.VoiceChannel, discord.Thread]
|
||||
) -> bool:
|
||||
raise NotImplementedError()
|
||||
|
||||
@abstractmethod
|
||||
|
||||
Reference in New Issue
Block a user