Python 不协调Bot命令未发布

Python 不协调Bot命令未发布,python,discord,discord.py,Python,Discord,Discord.py,我已经编写了一个discord bot,当我使用该命令时,控制台中没有错误,但它不会在通道中发布任何内容。与大多数其他命令一样,bot具有正确的权限 有关守则: @bot.command() async def plugins(ctx, *args): arg = list(map(lambda a: a.upper(), args)) print(arg) if arg == 'LIST': embed = discord.Embed()

我已经编写了一个discord bot,当我使用该命令时,控制台中没有错误,但它不会在通道中发布任何内容。与大多数其他命令一样,bot具有正确的权限

有关守则:

@bot.command()
async def plugins(ctx, *args):



    arg = list(map(lambda a: a.upper(), args))
    print(arg)
    if arg == 'LIST':
        embed = discord.Embed()
        embed.set_author(name='Chicken Bot', icon_url=image_url)
        embed.add_field(name='Plugins List', value= '**Server 1**\n Admin Toolbox\n Common Utilities\n PFE\n Chopper Drop\n UAFK\n \n **Server 2**\n Admin Toolbox\n Common Utilities\n PFE\n Chopper Drop\n Ultimate AFK\n Buddy\n SCP Swap\n Tranq Gun\n Stalky 106\n Better 939\n SCP 575\n Better Sinkholes\n \n Do c!plugins (Plugin Name) for more info!')
        await ctx.send(embed = embed)
打印(arg)
的结果是控制台中的
['LIST']


谢谢你的帮助

您正在用这一行创建一个列表:

arg = list(map(lambda a: a.upper(), args))
因此
['LIST']!='列出“
”并且if语句不运行。您需要更改if语句,以检查arg[0]=='LIST'或arg中的
'LIST'或类似内容。但是,您希望代码运行