From 501c2b97ddc49def973327c5b08011e934bd379d Mon Sep 17 00:00:00 2001 From: Kowlin <10947836+Kowlin@users.noreply.github.com> Date: Wed, 12 Oct 2022 22:40:49 +0200 Subject: [PATCH] Fix a lack of permission checks on usebuttons (#5878) --- redbot/core/core_commands.py | 1 + 1 file changed, 1 insertion(+) diff --git a/redbot/core/core_commands.py b/redbot/core/core_commands.py index ee39dde4a..18a915ad0 100644 --- a/redbot/core/core_commands.py +++ b/redbot/core/core_commands.py @@ -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.