This commit is contained in:
Jeremy Zhang 2017-05-08 21:48:32 -07:00
parent 7037c7ef8f
commit ed7730c633

View File

@ -45,7 +45,7 @@ def user_has_permission(permission, index):
return bool((int(permission) >> index) & 1)
def get_user_guilds():
cache = get_keyvalproperty("OAUTH/USERGUILDS/"+make_cache_key())
cache = get_keyvalproperty("OAUTH/USERGUILDS/"+make_user_cache_key())
if cache:
return cache
req = discordrest_from_user("/users/@me/guilds")