1
0
Fork 0
mirror of synced 2024-06-26 18:21:15 +12:00

Used the internal cache instead of a fake 'cache' object for one object

This commit is contained in:
phxntxm 2016-08-31 14:10:17 -05:00
parent a8e026b8f6
commit 6bd265fc59

View file

@ -22,7 +22,7 @@ def custom_perms(**perms):
setattr(default_perms, perm, setting)
try:
perm_values = config.perms
perm_values = config.cache.get('custom_permissions')
required_perm_value = perm_values[ctx.message.server.id][ctx.command.qualified_name]
required_perm = discord.Permissions(required_perm_value)
except (KeyError, TypeError):