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'])
|
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]:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user