mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-22 08:44:10 +00:00
Add type property to thread channels
This commit is contained in:
parent
30605e6f4f
commit
64b48431b4
@ -191,6 +191,10 @@ class Thread(Messageable, Hashable):
|
||||
self._unroll_metadata(data['thread_metadata'])
|
||||
except KeyError:
|
||||
pass
|
||||
@property
|
||||
def type(self) -> ChannelType:
|
||||
""":class:`ChannelType`: The channel's Discord type."""
|
||||
return self._type
|
||||
|
||||
@property
|
||||
def parent(self) -> Optional[TextChannel]:
|
||||
|
Loading…
x
Reference in New Issue
Block a user