Skip to content

Commit

Permalink
Changed minor text
Browse files Browse the repository at this point in the history
  • Loading branch information
Endyya committed Nov 29, 2024
1 parent bb0dbfa commit 1e10222
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions src/SilicaAnimus/discord_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,26 +49,29 @@ def __init__(self, *args, **kwargs):
self.set_footer(icon_url = (
'https://voie-du-thalos.org/wp-content/uploads/2023/12/'
+ 'Original10-1.png'),
text = 'Application discord pour La Voie du Thalos')
text = 'Application Discord pour La Voie du Thalos')

class CheckModal(discord.ui.Modal, title = 'Informations'):
nom = discord.ui.TextInput(label = 'Nom')
prenom = discord.ui.TextInput(label = 'Prénom')
prenom = discord.ui.TextInput(label = 'Prénom',
placeholder = 'Paul')
nom = discord.ui.TextInput(label = 'Nom',
placeholder = 'Bismuth')



async def on_submit(self, interaction: discord.Interaction):
nom = self.nom
prenom = self.prenom
ha_client = interaction.client.parent_client.helloasso_client
is_member = await ha_client.get_membership(
first_name = prenom,
last_name = nom
first_name = prenom.value,
last_name = nom.value
)

if is_member:
return_message = f"{prenom} {nom} is a member"
return_message = f"{prenom.value} {nom.value} est adhérent"
else:
return_message = f"{prenom} {nom} is not a member"
return_message = f"{prenom.value} {nom.value} n'est pas adhérent"
embed = MessageTemplate(
title = 'Vérification du membre :',
description = return_message)
Expand Down

0 comments on commit 1e10222

Please sign in to comment.