'Why does my bot mention the user on their account, but shows the users ID for other people viewing the ping while using embeds?
Here is the welcome message code:
@bot.event
async def on_member_join(member):
print(f"{member} has just joined")
channel = bot.get_channel(ID)
role = ID
embed = EmbedBuilder (
title = f"Welcome {member.mention} to the server!",
description = "",
color = 0xf1c40f
).build()
await channel.send(embed=embed)
role = get(member.guild.roles, id=role)
await member.add_roles(role)
This will return the result:
Welcome <@MyUserId> to the server!
for other people, such as my alt account, but will successfully return
Welcome @Mentioned to the server!
for the persons own account to see. I have no idea why it only displays and pings successfully for the member who has joined, but wont display correctly for other people. Any help?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
