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