Skip to content

Commit

Permalink
Merge pull request #2 from hwsuk/feature/role-update
Browse files Browse the repository at this point in the history
dont let users update their own role..
  • Loading branch information
emberdex authored Oct 10, 2023
2 parents c005c93 + 0b02862 commit 43012a9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions harmony_cogs/verify.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 43012a9

Please sign in to comment.