Home > Enterprise >  Discord.py bot not formatting text in footer in embed
Discord.py bot not formatting text in footer in embed

Time:04-03

I want to bold my text in footer in embed like this, but it's not working there, and it's working on the rest of the embed.
My code:

@bot.command()
async def test(ctx):
  user = ctx.author
  true_member_count = len([m for m in ctx.guild.members if not m.bot])
  guild = bot.get_guild(959460466223120405)
  embed = discord.Embed(name=f"\u200b", description=f"Welcome **{user}**!", color=discord.Color.from_rgb(129, 199, 250))
  embed.set_footer(text=f"You are **{true_member_count}** user on this server!!", icon_url=user.avatar_url)
  await ctx.send(embed=embed)

And this is the result:
https://imgur.com/a/iyvu0tc. Does anyone know why is this happening?
Please help

CodePudding user response:

The embed footer text doesn't support Markdown, whereas description does.

I couldn't find any mention of this in the official Discord or Discord.py docs, but it is mentioned in this Discord Webhooks Guide and on an old Reddit thread.

  • Related