Python Discord bot帮助命令

Python Discord bot帮助命令,python,bots,discord,Python,Bots,Discord,因此,当人们使用discord.py附带的help命令时,我试图更改命令的描述 但我似乎真的不知道该如何或在何处进行描述 我也尝试在帮助列表中创建不同的类别,比如音乐,但我真的不知道从哪里开始 我对python真的很陌生,但我以前也接触过其他编程语言 我的代码很长,但这里是它的一部分 client = commands.Bot(command_prefix=commands.when_mentioned_or('?'), description='Help List', pm_help = T

因此,当人们使用discord.py附带的help命令时,我试图更改命令的描述

但我似乎真的不知道该如何或在何处进行描述

我也尝试在帮助列表中创建不同的类别,比如音乐,但我真的不知道从哪里开始

我对python真的很陌生,但我以前也接触过其他编程语言

我的代码很长,但这里是它的一部分

client = commands.Bot(command_prefix=commands.when_mentioned_or('?'), 
description='Help List', pm_help = True)
client.add_cog(Music(client))

path = 'Blacklist.txt'

bl = open(path, 'r')

@client.event
async def on_ready():
    print('---------------------------------------------------------------------------------------')
    print('')
    print('Logged in as '+client.user.name+' (ID:'+client.user.id+') | Connected to '+str(len(client.servers))+' servers | Connected to '+str(len(set(client.get_all_members())))+' users')
    print('')
    print('---------------------------------------------------------------------------------------')
    print('')
    print('Current Discord.py Version: {} | Current Python Version: {}'.format(discord.__version__, platform.python_version()))
    print('')
    print('---------------------------------------------------------------------------------------')

@client.command()
async def ping(*args):
    await client.say(":ping_pong: Pong!")
假设我想为ping命令添加一个描述。我应该在哪里做,如何做?

@client.command()
@client.command(description="Some ping command") #here
async def ping(*args):
    await client.say(":ping_pong: Pong!")
异步定义ping(*args): “这里” 等待客户。说:“乒乓球!”