【问题标题】:Debold discord.py emebedDebold discord.py 嵌入
【发布时间】:2022-01-19 05:08:31
【问题描述】:

所以我正在我的不和谐机器人中嵌入,我想删除我尝试过的数字之间的大线 name='** **'name='ub200b' 但无论如何它都会显示烦人的空白行

代码:

embed5 = discord.Embed(
        title = response,
        description = 'Once you give me 5 names I will make op.gg Multisearch',
        colour = discord.Colour.red()
    )
  
  
    embed5.set_footer(text='footer')
    embed5.add_field(name='_Names_', value=f'`{opgg1.content}`', inline=False)
    embed5.add_field(name='\u200b', value=f'`{opgg2.content}`', inline=False)
    embed5.add_field(name='\u200b', value=f'`{opgg3.content}`', inline=False)
    embed5.add_field(name='\u200b', value=f'`{opgg4.content}`', inline=False)
    embed5.add_field(name='\u200b', value=f'`{opgg5.content}`', inline=False)
  
    await message.channel.send(embed=embed5)

【问题讨论】:

    标签: python discord discord.py


    【解决方案1】:

    你不能,这就是答案。解决方案是在描述中进行而不是使用字段

    embed5 = discord.Embed(
            title = response,
            description = f'Once you give me 5 names I will make op.gg Multisearch\n**_Names_**\n`{opgg1.content}`\n`{opgg2.content}`\n`{opgg3.content}`\n`{opgg4.content}`\n`{opgg5.content}`',
            colour = discord.Colour.red()
        )
    

    \n 是一个newline 字符。

    您也可以留下两行,如下所示:

    embed5 = discord.Embed(
            title = "Send me the summoner names",
            description = f'Once you give me 5 names I will make op.gg Multisearch\n**_Names_**\n`{opgg1.content}`\n\n`{opgg12.content}`\n\n`{opgg3.content}`\n\n`{opgg4.content}`\n\n`{opgg5.content}`',
            colour = discord.Colour.red()
        )
    

    【讨论】:

      猜你喜欢
      • 2022-01-01
      • 2020-12-09
      • 1970-01-01
      • 1970-01-01
      • 2021-11-29
      • 2021-02-28
      • 2020-06-17
      • 2020-11-01
      • 1970-01-01
      相关资源
      最近更新 更多