mirror of https://gitlab.com/litecord/litecord.git
pubsub: add passthrough logic
This commit is contained in:
parent
bc1c0f3b20
commit
a51840487f
|
|
@ -69,7 +69,8 @@ class ChannelDispatcher(
|
|||
await self.unsub(channel_id, session_id)
|
||||
continue
|
||||
|
||||
wanted_intent = EVENTS_TO_INTENTS[event_type]
|
||||
wanted_intent = EVENTS_TO_INTENTS.get(event_type)
|
||||
if wanted_intent is not None:
|
||||
state_has_intent = (state.intents & wanted_intent) == wanted_intent
|
||||
if not state_has_intent:
|
||||
continue
|
||||
|
|
|
|||
|
|
@ -69,7 +69,8 @@ class GuildDispatcher(
|
|||
await self.unsub(guild_id, session_id)
|
||||
continue
|
||||
|
||||
wanted_intent = EVENTS_TO_INTENTS[event_type]
|
||||
wanted_intent = EVENTS_TO_INTENTS.get(event_type)
|
||||
if wanted_intent is not None:
|
||||
state_has_intent = (state.intents & wanted_intent) == wanted_intent
|
||||
if not state_has_intent:
|
||||
continue
|
||||
|
|
|
|||
Loading…
Reference in New Issue