mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-06 09:56:09 +00:00
Change abc.PrivateChannel to be a proper subclass
This fixes isinstance(thread, discord.abc.PrivateChannel) from returning True
This commit is contained in:
@ -272,8 +272,7 @@ class User(Snowflake, Protocol):
|
||||
raise NotImplementedError
|
||||
|
||||
|
||||
@runtime_checkable
|
||||
class PrivateChannel(Snowflake, Protocol):
|
||||
class PrivateChannel:
|
||||
"""An ABC that details the common operations on a private Discord channel.
|
||||
|
||||
The following implement this ABC:
|
||||
@ -291,6 +290,7 @@ class PrivateChannel(Snowflake, Protocol):
|
||||
|
||||
__slots__ = ()
|
||||
|
||||
id: int
|
||||
me: ClientUser
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user