From 1e10222f159f5e7021d35a3d9a9e8bc6ca6ec8a8 Mon Sep 17 00:00:00 2001 From: Endyya Date: Fri, 29 Nov 2024 21:12:45 +0100 Subject: [PATCH] Changed minor text --- src/SilicaAnimus/discord_client.py | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/src/SilicaAnimus/discord_client.py b/src/SilicaAnimus/discord_client.py index c400d37..ed8d186 100644 --- a/src/SilicaAnimus/discord_client.py +++ b/src/SilicaAnimus/discord_client.py @@ -49,11 +49,14 @@ 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): @@ -61,14 +64,14 @@ async def on_submit(self, interaction: discord.Interaction): 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)