From cb0caf5aa3a5922571cd64642582d1e401e87d17 Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 13 Mar 2023 00:34:56 +0100 Subject: [PATCH] Modifying embedded message again --- recruitmentCog/recruitment.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/recruitmentCog/recruitment.py b/recruitmentCog/recruitment.py index 3c2bdfe..4b1f557 100644 --- a/recruitmentCog/recruitment.py +++ b/recruitmentCog/recruitment.py @@ -54,12 +54,18 @@ class Recruitment(commands.Cog): async def format_application(self, answers: List[str], author: discord.Member) -> discord.Embed: """Format the application answers into an embed.""" - embed = discord.Embed(title=f"Application from [{author.display_name}](https://discordapp.com/users/{author.id})", color=discord.Color.green()) + embed = discord.Embed(title=f"Application from {author.display_name}", color=discord.Color.green()) embed.set_thumbnail(url=author.avatar_url) embed.add_field(name="Name", value=answers[0]) embed.add_field(name="Discord ID", value=author.id) embed.add_field(name="Age", value=answers[1]) embed.add_field(name="Reason wishing to become a member:", value=answers[2]) + + # Add a link to the author's profile that opens a private conversation with them + author_url = f"https://discordapp.com/users/{author.id}" + author_link = f"[Click here to message {author.display_name}]({author_url})" + embed.set_footer(text=author_link) + return embed async def ask_questions(self, author: discord.Member, questions: List[str]) -> List[str]: