aboutsummaryrefslogtreecommitdiff
path: root/discord/channel.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2015-09-25 16:09:10 -0400
committerRapptz <[email protected]>2015-09-25 16:09:10 -0400
commit120b9cd3b2ade2ace73cb926b8dca7297329f10f (patch)
tree541e8fd6cb7bd94c09f41da7f411194a3add0790 /discord/channel.py
parentAdd support for channel topics. (diff)
downloaddiscord.py-120b9cd3b2ade2ace73cb926b8dca7297329f10f.tar.xz
discord.py-120b9cd3b2ade2ace73cb926b8dca7297329f10f.zip
Listen to CHANNEL_UPDATE events and add on_channel_update
Diffstat (limited to 'discord/channel.py')
-rw-r--r--discord/channel.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/discord/channel.py b/discord/channel.py
index a3e433e0..74d74001 100644
--- a/discord/channel.py
+++ b/discord/channel.py
@@ -59,6 +59,9 @@ class Channel(object):
"""
def __init__(self, **kwargs):
+ self.update(**kwargs)
+
+ def update(self, **kwargs):
self.name = kwargs.get('name')
self.server = kwargs.get('server')
self.id = kwargs.get('id')