Change abc.PrivateChannel to be a proper subclass

This fixes isinstance(thread, discord.abc.PrivateChannel) from
returning True
This commit is contained in:
Rapptz
2022-07-04 05:43:46 -04:00
parent fd9c244f48
commit 5de9287902
2 changed files with 4 additions and 4 deletions

View File

@ -2381,7 +2381,7 @@ class ForumChannel(discord.abc.GuildChannel, Hashable):
return Webhook.from_state(data, state=self._state)
class DMChannel(discord.abc.Messageable, Hashable):
class DMChannel(discord.abc.Messageable, discord.abc.PrivateChannel, Hashable):
"""Represents a Discord direct message channel.
.. container:: operations
@ -2533,7 +2533,7 @@ class DMChannel(discord.abc.Messageable, Hashable):
return PartialMessage(channel=self, id=message_id)
class GroupChannel(discord.abc.Messageable, Hashable):
class GroupChannel(discord.abc.Messageable, discord.abc.PrivateChannel, Hashable):
"""Represents a Discord group channel.
.. container:: operations