parent
5a94b57399
commit
ee513cf554
4
bot.py
4
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)
|
Loading…
Reference in New Issue