Fix a lack of permission checks on usebuttons (#5878)

This commit is contained in:
Kowlin
2022-10-12 22:40:49 +02:00
committed by GitHub
parent b0a3f00f41
commit 501c2b97dd

View File

@@ -3622,6 +3622,7 @@ class Core(commands.commands._RuleDropper, commands.Cog, CoreLogic):
await ctx.send(_("Server prefixes set."))
@_set.command(name="usebuttons")
@checks.is_owner()
async def use_buttons(self, ctx: commands.Context, use_buttons: bool = None):
"""
Set a global bot variable for using buttons in menus.