我试图专门使用“f1”作为传递给不和谐机器人的命令,但我最终得到了错误
public int method1(){
return 1;
}
public void method2(){
method1();//Shouldn't it be like int value=method1();?
}
这很奇怪,因为当我使用 hello 时它没有抱怨,有什么原因吗?
Ignoring exception in command None:
discord.ext.commands.errors.CommandNotFound: Command "f1" is not found
答案 0 :(得分:0)
您尚未为“f1”定义命令,因此出现错误。