Skip to content

Commit

Permalink
Don't override coro if we don't mean to
Browse files Browse the repository at this point in the history
  • Loading branch information
4Kaylum committed Jan 18, 2024
1 parent 1a88406 commit 2ff0558
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion novus/api/gateway/dispatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,12 @@ async def handle_dispatch(self, event_name: str, data: dict) -> None:
if self.parent.gateway.guild_ids_only:
if event_name == "GUILD_CREATE":
coro = self._handle_guild_create_id_only
elif event_name == "GUILD_DELETE":
coro = self.EVENT_HANDLER["GUILD_DELETE"]
else:
return
coro = self.EVENT_HANDLER.get(event_name)
else:
coro = self.EVENT_HANDLER.get(event_name)
if coro is None:
log.warning(
"Failed to parse event %s %s"
Expand Down

0 comments on commit 2ff0558

Please sign in to comment.