From 8f229bf764fabbf226d02c3eb288ce41afe060bd Mon Sep 17 00:00:00 2001 From: Luna Date: Wed, 14 Jul 2021 22:38:51 -0300 Subject: [PATCH] pubsub: fix typo --- litecord/pubsub/guild.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litecord/pubsub/guild.py b/litecord/pubsub/guild.py index 995837f..d7477a0 100644 --- a/litecord/pubsub/guild.py +++ b/litecord/pubsub/guild.py @@ -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, # bypass event logic (always send) 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 # TODO Guild Create and Req Guild Members have specific