简体   繁体   English

discord.py bot(带齿轮)的清除命令不起作用

[英]Clear command for discord.py bot (with cogs) not working

I keep getting these errors whenever i run my code errors每当我运行代码错误时,我都会不断收到这些错误

Here's the code: Code Btw the bit off screen is just "inline = False"这是代码: 顺便说一句,屏幕外的代码只是“inline = False”

Btw im using this inside a cog for my discord.py bot顺便说一句,我在我的 discord.py 机器人的 cog 内使用它

问题解决了,忘记添加self

async def clear(self, ctx, amount : int):

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM