我正在创建嵌入的discord.py消息,看起来像this。每个字段的值都有一个由单词组成的字符串,每个单词后面都有一个换行符。如您所见,格式略有偏离,列也不是完全居中。我该如何实现?
我不和谐的嵌入代码:
embed = displayembed('Live Match Data')
embed.add_field(name = 'Blue Team', value= a1, inline = True)
embed.add_field(name = 'Champion', value = a2, inline = True)
embed.add_field(name = 'Rank', value = a3, inline = True)
embed.add_field(name = 'Red Team ', value = b1, inline = True)
embed.add_field(name = 'Champion', value = b2, inline = True)
embed.add_field(name = 'Rank', value = b3, inline = True)
embed.set_footer(text=ctx.author.name, icon_url = ctx.author.avatar_url)
await ctx.send(embed=embed)
答案 0 :(得分:1)
embed = discord.Embed(title='Live Match Data')
embed.add_field(name = 'Blue Team', value= "Something", inline = True)
embed.add_field(name = 'Champion', value = "Something", inline = True)
embed.add_field(name = 'Rank', value = "Something", inline = True)
embed.add_field(name = 'Red Team ', value = "Something", inline = True)
embed.add_field(name = 'Champion', value = "Something", inline = True)
embed.add_field(name = 'Rank', value = "Something", inline = True)
embed.set_footer(text=ctx.author.name, icon_url = ctx.author.avatar_url)
await ctx.send(embed=embed)