小编Tre*_*ong的帖子

我如何在Python中嵌入Discord中进行换行?

我试图在每个嵌入字段之间留出一个空间,我尝试使用\u200B\n但它对我不起作用。(使用Python创建discord机器人)

async def cmd_help(self, ctxt):
    embed=discord.Embed(
        color=ctxt.author.color,
        description=f'All Command**{self.client.user.mention}**'
    )
    embed.set_author(name=self.client.user.name, icon_url=self.client.user.avatar_url)
    embed.add_field(name='Server Command', value='`p!ping`>>Check the ping from server to bot.\n`p!list`>>Check the number of users in the server.',  inline=False)
    embed.add_field(name='Users Command', value='`!kick`>>Kick the user from server.',  inline=False)
    await ctxt.send(embed=embed)
Run Code Online (Sandbox Code Playgroud)

python bots discord

3
推荐指数
1
解决办法
7823
查看次数

标签 统计

bots ×1

discord ×1

python ×1