不和谐.pybot没有在嵌入中使用正确的文本格式,但只在移动设备上使用?

2024-03-28 17:18:11 发布

您现在位置:Python中文网/ 问答频道 /正文

下面是桌面应用程序上的样子:https://imgur.com/a/iDTrHsy

下面是它在移动(Android)上的样子:https://imgur.com/a/RV3tvZJ

这是我的密码:

@client.command()
async def draw(ctx):
    group_of_items = [
                    '[***Seiyaryu***](link)',
                    '[Crawling Dragon #2](link)']
    num_to_select = 2
    list_of_random_items = random.sample(group_of_items, num_to_select)
    first_random_item = list_of_random_items[0]
    second_random_item = list_of_random_items[1]
    embed = discord.Embed(
        description = f'You drew: {first_random_item}\nand\n{second_random_item}',
        colour = discord.Colour.from_rgb(47,128,49)
        )
    embed.set_footer(text="Bot of Greed", icon_url="link")
    await ctx.send(embed=embed)

有没有办法解决这个问题,让它在手机上也显示文本格式?你知道吗


Tags: oftohttpscomgrouplinkitemsrandom