My discord bot is suppose to tag people in an embed containing a GIF. I'm using the following code to mention:
embed = discord.Embed(title = f"{member.mention}, I'm sorry...")
However, instead of tagging the member, I get the ID instead: Screenshot
Alkes02's answer isn't true.
You can tag (they won't get a notification) people in embeds.
See the below image from my bot: https://gyazo.com/118f0251798afd32bdd23d806c694544
I believe you just take the message's author and add a .mention
to the end of the object.
for user in board:
description += f"**{board.index(user) + 1}.** {user[0].mention} | Level: {user[1]} |
XP: {user[2]}\n"
msg = discord.Embed(
color=discord.Color.green(),
title=f"{str(ctx.guild)}" "s Valley Leaderboard",
description=description,
)
await ctx.send(embed=msg)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With