Browse Source
Remove leftover guild from scheduled_event_delete dispatch
pull/9059/head
z03h
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
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')) |
|
|
|