Browse Source

Add type property to thread channels

pull/7154/head
Alex Liu 4 years ago
committed by GitHub
parent
commit
64b48431b4
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      discord/threads.py

4
discord/threads.py

@ -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…
Cancel
Save