aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2015-09-25 15:54:04 -0400
committerRapptz <[email protected]>2015-09-25 15:54:04 -0400
commit773fc0ad97f2bc3702ba16b264f4b6fd8009fbc6 (patch)
tree6c132db5c973133f83da8e2df029e084fa27c431
parentMove permission overwrite construction to the Channel constructor. (diff)
downloaddiscord.py-773fc0ad97f2bc3702ba16b264f4b6fd8009fbc6.tar.xz
discord.py-773fc0ad97f2bc3702ba16b264f4b6fd8009fbc6.zip
Add support for channel topics.
-rw-r--r--discord/channel.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/discord/channel.py b/discord/channel.py
index 28227178..a3e433e0 100644
--- a/discord/channel.py
+++ b/discord/channel.py
@@ -40,6 +40,9 @@ class Channel(object):
.. attribute:: id
The channel ID.
+ .. attribute:: topic
+
+ The channel's topic. None if it doesn't exist.
.. attribute:: is_private
``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.server = kwargs.get('server')
self.id = kwargs.get('id')
+ self.topic = kwargs.get('topic')
self.is_private = False
self.position = kwargs.get('position')
self.type = kwargs.get('type')