mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-19 15:36:02 +00:00
Only trigger on_voice_state_update if the member actually exists.
This commit is contained in:
parent
a31188c966
commit
bf650297a1
@ -521,8 +521,9 @@ class ConnectionState:
|
||||
if voice is not None:
|
||||
voice.channel = server.get_channel(data.get('channel_id'))
|
||||
|
||||
updated_members = server._update_voice_state(data)
|
||||
self.dispatch('voice_state_update', *updated_members)
|
||||
before, after = server._update_voice_state(data)
|
||||
if after is not None:
|
||||
self.dispatch('voice_state_update', before, after)
|
||||
|
||||
def parse_typing_start(self, data):
|
||||
channel = self.get_channel(data.get('channel_id'))
|
||||
|
Loading…
x
Reference in New Issue
Block a user