我是 Java Discord API 的新手,我正在尝试在用户加入时运行函数。根据javadocs,您需要启用 GatewayIntent GUILD_MEMBERS,默认情况下禁用,但是当我使用 JDABuilder#enableIntents(GatewayIntent.GUILD_MEMBERS); 运行机器人时 我收到错误代码。
CloseCode(4014 / 不允许的意图。您的机器人可能没有资格请求特权意图,例如 GUILD_PRESENCES 或 GUILD_MEMBERS。)
java discord discord-jda
discord ×1
discord-jda ×1
java ×1