diff options
| author | Rapptz <[email protected]> | 2015-09-25 16:09:10 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2015-09-25 16:09:10 -0400 |
| commit | 120b9cd3b2ade2ace73cb926b8dca7297329f10f (patch) | |
| tree | 541e8fd6cb7bd94c09f41da7f411194a3add0790 /discord/channel.py | |
| parent | Add support for channel topics. (diff) | |
| download | discord.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.py | 3 |
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') |