mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-05-12 16:59:50 +00:00
Add support for channel topics.
This commit is contained in:
parent
a9a030cdb2
commit
773fc0ad97
@ -40,6 +40,9 @@ class Channel(object):
|
|||||||
.. attribute:: id
|
.. attribute:: id
|
||||||
|
|
||||||
The channel ID.
|
The channel ID.
|
||||||
|
.. attribute:: topic
|
||||||
|
|
||||||
|
The channel's topic. None if it doesn't exist.
|
||||||
.. attribute:: is_private
|
.. attribute:: is_private
|
||||||
|
|
||||||
``True`` if the channel is a private channel (i.e. PM). ``False`` in this case.
|
``True`` if the channel is a private channel (i.e. PM). ``False`` in this case.
|
||||||
@ -59,6 +62,7 @@ class Channel(object):
|
|||||||
self.name = kwargs.get('name')
|
self.name = kwargs.get('name')
|
||||||
self.server = kwargs.get('server')
|
self.server = kwargs.get('server')
|
||||||
self.id = kwargs.get('id')
|
self.id = kwargs.get('id')
|
||||||
|
self.topic = kwargs.get('topic')
|
||||||
self.is_private = False
|
self.is_private = False
|
||||||
self.position = kwargs.get('position')
|
self.position = kwargs.get('position')
|
||||||
self.type = kwargs.get('type')
|
self.type = kwargs.get('type')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user