mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-08 10:53:10 +00:00
Fix webhook_update from code review
This commit is contained in:
@ -780,8 +780,9 @@ class ConnectionState:
|
||||
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)
|
||||
channel = self.get_channel(int(data['channel_id']))
|
||||
if channel:
|
||||
self.dispatch('webhooks_update', channel)
|
||||
|
||||
def parse_voice_state_update(self, data):
|
||||
guild = self._get_guild(utils._get_as_snowflake(data, 'guild_id'))
|
||||
|
Reference in New Issue
Block a user