我想将Main方法更改为async,但我不知道如何编辑此方法,因为它在 .NET 6.0 中是“不可见的”。我希望它看起来像这样:static async Task Main(string[] args)。那么我该如何编辑它呢?
假设我有这个命令:
@bot.command(description='command do some stuff')
async def somecommand(ctx: commands.Context, arg1:str, arg2:str = "hello"):
await ctx.channel.send(arg1+arg2)
Run Code Online (Sandbox Code Playgroud)
当我调用 help command:!help somecommand或 ?help somecommand (取决于前缀)时
,它返回:
如何为参数添加描述?