mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-07 01:42:30 -05:00
Fix a lack of permission checks on usebuttons (#5878)
This commit is contained in:
@@ -3622,6 +3622,7 @@ class Core(commands.commands._RuleDropper, commands.Cog, CoreLogic):
|
|||||||
await ctx.send(_("Server prefixes set."))
|
await ctx.send(_("Server prefixes set."))
|
||||||
|
|
||||||
@_set.command(name="usebuttons")
|
@_set.command(name="usebuttons")
|
||||||
|
@checks.is_owner()
|
||||||
async def use_buttons(self, ctx: commands.Context, use_buttons: bool = None):
|
async def use_buttons(self, ctx: commands.Context, use_buttons: bool = None):
|
||||||
"""
|
"""
|
||||||
Set a global bot variable for using buttons in menus.
|
Set a global bot variable for using buttons in menus.
|
||||||
|
|||||||
Reference in New Issue
Block a user