Skip to content

Commit

Permalink
fix wrong role being chosen for joining server
Browse files Browse the repository at this point in the history
  • Loading branch information
SonOfLope committed Sep 26, 2024
1 parent 4b1ea43 commit 9adbc3b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion cogs/requests/join.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ async def request_server_access(ctx):
if calidum_enabled:
await post_to_calidum(username, "Membre du serveur", f"Demande d'ajout comme membre pour {username} avec statut 'pending'.")

# Send confirmation message to the user
embed = Embed(
title="Demande de membre envoyée",
description=f"Votre demande pour devenir membre est en attente d'approbation.",
Expand Down
2 changes: 1 addition & 1 deletion cogs/utils/discord.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,6 @@ def find_role_in_guild(guild, role_name):
the specified name. The search is case-insensitive.
"""
for role in guild.roles:
if role_name.lower() in role.name.lower():
if role_name.lower() == role.name.lower():
return role
return None

0 comments on commit 9adbc3b

Please sign in to comment.