From 13cc7a7f8a28e6aafd3e6d6bd093d2e09fa73d27 Mon Sep 17 00:00:00 2001 From: fanyx Date: Tue, 23 Jan 2024 17:47:38 +0100 Subject: [PATCH] Add guild_only() guard to /roles create --- main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/main.py b/main.py index 6589230..cabe4df 100755 --- a/main.py +++ b/main.py @@ -31,6 +31,7 @@ roles = app_commands.Group(name="roles", description="Manage role dialogues") # Commands ## Group: roles +@commands.guild_only() @roles.command(name="create") async def roles_create_button(interaction: discord.Interaction): await interaction.response.send_message(