No cache when checking guild member revoke

This commit is contained in:
Jeremy Zhang 2017-04-09 12:33:48 -07:00
parent 7eb64ca96e
commit e342a44c26

View File

@ -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