From 0b0286210d3c3fe86c204921e8faa23b7c33cdcf Mon Sep 17 00:00:00 2001 From: Toby Jones Date: Tue, 10 Oct 2023 21:51:25 +0100 Subject: [PATCH] dont let users update their own role.. --- harmony_cogs/verify.py | 1 + 1 file changed, 1 insertion(+) diff --git a/harmony_cogs/verify.py b/harmony_cogs/verify.py index 9f660f6..86e9e4a 100644 --- a/harmony_cogs/verify.py +++ b/harmony_cogs/verify.py @@ -340,6 +340,7 @@ async def whois_user(self, interaction: discord.Interaction, member: discord.Mem await interaction.response.send_message(embed=embed, ephemeral=True) + @app_commands.checks.has_role(config["discord"]["harmony_management_role_id"]) async def update_role(self, interaction: discord.Interaction, member: discord.Member): await interaction.response.send_message("Please select the new role:", view=UpdateRoleView(target_member=member), ephemeral=True)