mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-12-24 14:07:03 +01:00
No cache when checking guild member revoke
This commit is contained in:
parent
7eb64ca96e
commit
e342a44c26
@ -26,7 +26,7 @@ def checkUserRevoke(guild_id, user_key=None):
|
|||||||
banned = checkUserBanned(guild_id)
|
banned = checkUserBanned(guild_id)
|
||||||
if banned:
|
if banned:
|
||||||
return revoked
|
return revoked
|
||||||
member = discord_api.get_guild_member(guild_id, session['user_id'])
|
member = discord_api.get_guild_member_nocache(guild_id, session['user_id'])
|
||||||
if member['code'] == 200:
|
if member['code'] == 200:
|
||||||
revoked = False
|
revoked = False
|
||||||
return revoked
|
return revoked
|
||||||
|
Loading…
Reference in New Issue
Block a user