Browse Source

Remove leftover guild from scheduled_event_delete dispatch

pull/9059/head
z03h 2 years ago
committed by GitHub
parent
commit
44c09c17b4
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      discord/state.py

2
discord/state.py

@ -798,7 +798,7 @@ class ConnectionState:
for s in guild.scheduled_events:
if s.channel_id == channel.id:
guild._scheduled_events.pop(s.id)
self.dispatch('scheduled_event_delete', guild, s)
self.dispatch('scheduled_event_delete', s)
def parse_channel_update(self, data: gw.ChannelUpdateEvent) -> None:
channel_type = try_enum(ChannelType, data.get('type'))

Loading…
Cancel
Save