diff --git a/kdb-bot/src/bot_graphql/abc/query_abc.py b/kdb-bot/src/bot_graphql/abc/query_abc.py index 5115cbfa..9c8f3ef1 100644 --- a/kdb-bot/src/bot_graphql/abc/query_abc.py +++ b/kdb-bot/src/bot_graphql/abc/query_abc.py @@ -135,7 +135,7 @@ class QueryABC(ObjectType): u: User = u guild = bot.get_guild(u.server.discord_id) member = guild.get_member(u.discord_id) - if u.id == element.id or permissions.is_member_moderator(member): + if u.id == element.user.id or permissions.is_member_moderator(member): access = True break @@ -144,7 +144,7 @@ class QueryABC(ObjectType): u: User = u guild = bot.get_guild(u.server.discord_id) member = guild.get_member(u.discord_id) - if u.id == element.id or permissions.is_member_moderator(member): + if u.id == element.user.id or permissions.is_member_moderator(member): access = True break @@ -153,7 +153,7 @@ class QueryABC(ObjectType): u: User = u guild = bot.get_guild(u.server.discord_id) member = guild.get_member(u.discord_id) - if u.id == element.id or permissions.is_member_moderator(member): + if u.id == element.user.id or permissions.is_member_moderator(member): access = True break