From 72998c8277b84f2f882b1b2bf926b20d6457468d Mon Sep 17 00:00:00 2001 From: Dan Hess Date: Thu, 7 May 2020 11:55:11 -0500 Subject: [PATCH] Pass in only the command to updating permission cache --- cogs/admin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cogs/admin.py b/cogs/admin.py index bcf82fd..1ed014c 100644 --- a/cogs/admin.py +++ b/cogs/admin.py @@ -535,7 +535,7 @@ WHERE perm_value ) - ctx.bot.cache.update_custom_permission(ctx.guild, cmd.qualified_name, perm_value) + ctx.bot.cache.update_custom_permission(ctx.guild, cmd, perm_value) await ctx.send("I have just added your custom permissions; " "you now need to have `{}` permissions to use the command `{}`".format(permission, command)) @@ -560,7 +560,7 @@ WHERE "DELETE FROM custom_permissions WHERE guild=$1 AND command=$2", ctx.guild.id, cmd.qualified_name ) - ctx.bot.cache.update_custom_permission(ctx.guild, cmd.qualified_name, None) + ctx.bot.cache.update_custom_permission(ctx.guild, cmd, None) await ctx.send("I have just removed the custom permissions for {}!".format(cmd))