mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -05:00
Fix a lack of permission checks on usebuttons (#5878)
This commit is contained in:
parent
b0a3f00f41
commit
501c2b97dd
@ -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.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user