我尝试在scala 3代码中使用discord4j 3.2和斜杠命令。当我为斜杠命令添加代码时,sbt在编译时给了我这个错误: [error] Bad symbolic reference.[warn] while parsing ~/.cache/coursier/v1/https/oss.sonatype.org/content/repositories/snapshots/com/discord4j/discord-json/1.6.
在我的程序中,我尝试向公会的(新)成员添加一个角色。但是,当我试图将角色添加到成员时,我会收到一个错误消息:“缺少权限”。令人困惑的是,机器人已经拥有了管理角色的权限。在我授予机器人管理员权限之后,错误还是出现了。if(studentRole == null){
tempMem.getPrivateChannel().block().createMessage("Sorry the Server doesn't