aboutsummaryrefslogtreecommitdiff
path: root/discord/client.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2015-12-17 18:22:16 -0500
committerRapptz <[email protected]>2015-12-17 18:22:16 -0500
commit9075d46efdc9d1b430558d7d4d67816a26d04c28 (patch)
tree9cfe07e2f064e80ec8bae2e9083dc2737879dcce /discord/client.py
parentAdd way to delete messages after a user is banned. (diff)
downloaddiscord.py-9075d46efdc9d1b430558d7d4d67816a26d04c28.tar.xz
discord.py-9075d46efdc9d1b430558d7d4d67816a26d04c28.zip
Add on_member_ban and on_member_unban events.
Fixes #58.
Diffstat (limited to 'discord/client.py')
-rw-r--r--discord/client.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/discord/client.py b/discord/client.py
index 9483c5f9..9e5f3c64 100644
--- a/discord/client.py
+++ b/discord/client.py
@@ -344,7 +344,8 @@ class Client:
'GUILD_MEMBER_ADD', 'GUILD_MEMBER_REMOVE', 'GUILD_UPDATE'
'GUILD_MEMBER_UPDATE', 'GUILD_CREATE', 'GUILD_DELETE',
'GUILD_ROLE_CREATE', 'GUILD_ROLE_DELETE', 'TYPING_START',
- 'GUILD_ROLE_UPDATE', 'VOICE_STATE_UPDATE'):
+ 'GUILD_ROLE_UPDATE', 'VOICE_STATE_UPDATE',
+ 'GUILD_BAN_ADD', 'GUILD_BAN_REMOVE'):
parser = 'parse_' + event.lower()
getattr(self.connection, parser)(data)
else: