1
0
Fork 0
mirror of synced 2024-05-06 21:52:30 +12:00

Pass in only the command to updating permission cache

This commit is contained in:
Dan Hess 2020-05-07 11:55:11 -05:00
parent 94c2cb010d
commit 72998c8277

View file

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