Discord.py 机器人不格式化嵌入页脚中的文本
Discord.py bot not formatting text in footer in embed
我想像 this 一样在嵌入的页脚中加粗我的文本,但它在那里不起作用,它在嵌入的其余部分起作用。
我的代码:
@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)
这是结果:
https://imgur.com/a/iyvu0tc。
有谁知道为什么会这样?
请帮忙
嵌入页脚文本不支持 Markdown,而 description
支持。
我在官方 Discord 或 Discord.py 文档中找不到对此的任何提及,但在此 Discord Webhooks Guide and on an old Reddit thread.
中提到了它
我想像 this 一样在嵌入的页脚中加粗我的文本,但它在那里不起作用,它在嵌入的其余部分起作用。
我的代码:
@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)
这是结果:
https://imgur.com/a/iyvu0tc。
有谁知道为什么会这样?
请帮忙
嵌入页脚文本不支持 Markdown,而 description
支持。
我在官方 Discord 或 Discord.py 文档中找不到对此的任何提及,但在此 Discord Webhooks Guide and on an old Reddit thread.
中提到了它