aboutsummaryrefslogtreecommitdiff
path: root/discord
diff options
context:
space:
mode:
authorJeremy Zhang <[email protected]>2018-07-09 05:29:02 +0000
committerRapptz <[email protected]>2018-09-15 18:28:57 -0400
commit17f9916b03eeb3d108913d8191a12156fd79ab85 (patch)
tree3c82dfca9b425f9b67df86eb8373ab863a269053 /discord
parentUpdate Japanese string dump. (diff)
downloaddiscord.py-17f9916b03eeb3d108913d8191a12156fd79ab85.tar.xz
discord.py-17f9916b03eeb3d108913d8191a12156fd79ab85.zip
Simple parser for WEBHOOKS_UPDATE
Diffstat (limited to 'discord')
-rw-r--r--discord/state.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/discord/state.py b/discord/state.py
index e869fec0..28c6feb0 100644
--- a/discord/state.py
+++ b/discord/state.py
@@ -779,6 +779,10 @@ class ConnectionState:
log.info('Processed a chunk for %s members in guild ID %s.', len(members), guild_id)
self.process_listeners(ListenerType.chunk, guild, len(members))
+ def parse_webhooks_update(self, data):
+ channel = self.get_channel(int(data["channel_id"]))
+ self.dispatch("webhooks_update", channel)
+
def parse_voice_state_update(self, data):
guild = self._get_guild(utils._get_as_snowflake(data, 'guild_id'))
channel_id = utils._get_as_snowflake(data, 'channel_id')