然而,我看过的几乎所有教程都使用ctx命令,每当我使用它时,我都会收到以下错误: "NameError: name 'ctx' is not defined" 下面是使用ctx命令的部分代码。@client.event """clear 3 messages from current channel"""
channel = <
:\Users\jellis\Desktop\Suggestion Bot\bot.py", line 28, in <module>NameError: name 'ctx' is not defined 我尝试将@commands.cooldown(1,1500 ctx)移到async def suggest(ctx, *args@bot.command(pass_context = True)
@co
我有一个用Discord.py编写的预生成代码,它使用Heroku托管,目前它是在线的,只是每当我使用一个命令时,它就什么也不返回,但是当在本地使用Notepad++运行它时,这些命令工作得很好。):
await ctx.send(f'Pong!, description=f'Im an Utility bot, that is coded under discord.py\n\n> Statistics\nLatency: `{round(bot.latency* 10