mirror of https://gitlab.com/litecord/litecord.git
pubsub: fix typo
This commit is contained in:
parent
36e6e078b3
commit
8f229bf764
|
|
@ -33,7 +33,7 @@ def can_dispatch(event_type, event_data, state) -> bool:
|
||||||
# If we're sending to the same user for this kind of event,
|
# If we're sending to the same user for this kind of event,
|
||||||
# bypass event logic (always send)
|
# bypass event logic (always send)
|
||||||
if event_type == "GUILD_MEMBER_UPDATE":
|
if event_type == "GUILD_MEMBER_UPDATE":
|
||||||
user_id = int(event_data["user"])
|
user_id = int(event_data["user"]["id"])
|
||||||
return user_id == state.user_id
|
return user_id == state.user_id
|
||||||
|
|
||||||
# TODO Guild Create and Req Guild Members have specific
|
# TODO Guild Create and Req Guild Members have specific
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue