From ee513cf5542699a0fe122e054f64e034dfbdb009 Mon Sep 17 00:00:00 2001 From: Anorak_1 Date: Sun, 16 Jul 2023 10:53:39 +0200 Subject: [PATCH] Removed ":" from application embed added reason field to embed after acc/dec --- bot.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bot.py b/bot.py index b1ca913..89e5d85 100644 --- a/bot.py +++ b/bot.py @@ -65,7 +65,7 @@ async def apply(ctx): channel = bot.get_channel(channel_id) embed = discord.Embed(title='Application: ' + ctx.author.display_name) for i in range(1, max_questions+1): - embed.add_field(name=f'Question {i}: ', value=application[f'question{i}'], inline=False) + embed.add_field(name=f'{questions[i]}', value=application[f'question{i}'], inline=False) embed.set_footer(text=f"Applicant ID: {ctx.author.id}") appView = ApplicationButtonsView() @@ -146,6 +146,7 @@ class ApplicationModal(discord.ui.Modal): await discord.utils.get(interaction.message.guild.members, id=int(user_id)).add_roles(role) emb = interaction.message.embeds[0] emb.colour = discord.Colour.green() + emb.add_field(name=f'REASON: ', value=reason, inline=False) await interaction.followup.edit_message(message_id = interaction.message.id, embeds=[emb]) if self.action == "dec": user = await bot.get_user(user_id).create_dm() @@ -154,6 +155,7 @@ class ApplicationModal(discord.ui.Modal): await interaction.response.send_message(content="Application declined", ephemeral=True) emb = interaction.message.embeds[0] emb.colour = discord.Colour.red() + emb.add_field(name=f'REASON: ', value=reason, inline=False) await interaction.followup.edit_message(message_id = interaction.message.id, embeds=[emb]) bot.run(TOKEN) \ No newline at end of file