不允许我使用 f 或 f1 作为不和谐机器人的命令

时间:2021-02-06 16:48:05

标签: python discord

我试图专门使用“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

1 个答案:

答案 0 :(得分:0)

您尚未为“f1”定义命令,因此出现错误。