From 8595a12f7fad2084e668e6dff2b1966082361960 Mon Sep 17 00:00:00 2001 From: imcompiling Date: Sun, 12 Feb 2023 21:27:54 -0500 Subject: [PATCH] Make command for admin only. --- cogs/commands/help.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cogs/commands/help.py b/cogs/commands/help.py index 5753a60..b63fd8b 100644 --- a/cogs/commands/help.py +++ b/cogs/commands/help.py @@ -22,7 +22,10 @@ class HelpCog(commands.Cog, name="Help commands."): Parent slash command for help. Never called. """ - @help.subcommand(description="Describes how to get started with Agon.") + @help.subcommand( + description="Describes how to get started with Agon.", + default_member_permissions=nextcord.Permissions(administrator=True), + ) async def setup(self, interaction: nextcord.Interaction): """ Sends a message describing how to get started with Agon.