Make command for admin only.

This commit is contained in:
2023-02-12 21:27:54 -05:00
parent f76171ac84
commit 8595a12f7f
+4 -1
View File
@@ -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.