我希望我的机器人的角色比任何角色都要高。有没有办法做到这一点?
我的源码:Repository
发布于 2021-08-01 19:46:27
https://discord.js.org/#/docs/main/stable/class/Role?scrollTo=setPosition
阅读文档。正如Tyler2P所说,“你的机器人只能在它的最高角色位置上提升角色1”。
发布于 2021-08-01 22:30:39
尝试读取docs。如果您需要任何帮助,请尝试在不一致上使用DM me : wolfie#2038
// Set the position of the role
role.setPosition(1)
.then(updated => console.log(`Role position: ${updated.position}`))
.catch(console.error);
https://stackoverflow.com/questions/68609077
复制相似问题