这可能是个愚蠢的问题但是..。如何向cogs添加描述??
目前我正在为我的机器人制作一个自定义的帮助命令,因为它还在开发中,我肯定会给它添加更多的齿轮,它会让我的生活变得更容易,只有齿轮描述!
在discord.py文档中,对象cog具有以下属性描述:

我就是不明白这一点!我做了一些研究,但我找不到任何齿轮描述的例子。
所以这里有一个简单的齿轮:
import discord
from discord.ext import commands
class Funny(commands.cog):
def __init__(self, bot):
self.bot = bot
@commands.command()
async def funnyImage(ctx):
await ctx.send(file=discord.File('memes/funnyImage.png'))
def setup(bot):
bot.add_cog(Imagens(bot))我该如何给它添加描述呢?
发布于 2021-07-31 22:27:10
我快速浏览了一下文档,发现了以下内容:

我现在不能测试它,但看起来你必须将它直接传递给类定义,例如class MyCog(commands.Cog, description="Hello"):
https://stackoverflow.com/questions/68606168
复制相似问题