Discord.py 创建用多个嵌入字段响应的discord bot命令

Discord.py 创建用多个嵌入字段响应的discord bot命令,discord.py,Discord.py,我正在创建一个bot命令,允许用户在服务器上创建美观的嵌入 @bot.command() async def embed(ctx,title_str,text_str,url_str, feildname_list): my_embed=discord.Embed(title=title_str, url=url_str, description=text_str, color=0xFF5733) await ctx.send(embed=my_embed) 当前,feild

我正在创建一个bot命令,允许用户在服务器上创建美观的嵌入

 @bot.command()
async def embed(ctx,title_str,text_str,url_str, feildname_list):
    my_embed=discord.Embed(title=title_str, url=url_str, description=text_str, color=0xFF5733)
    await ctx.send(embed=my_embed)
当前,
feildname\u列表
未使用。 我想做的是使用fieldname列表中的名称创建一系列内联字段,其中包含一个升序整数

像这样:

使用文档,我找到了这个命令

add_field(*, name, value, inline=True)

这很有效,但感觉不雅。当我创建我的_嵌入时,感觉应该有一种方法将字段添加为关键字参数,但我在文档中看不到。有这样一种方法吗?

不,没有一种方法可以满足你的要求

不,没有一种方法可以满足你的要求