我想向特定的用户添加一个角色。(使用CronJob作为If)
function one() {
client.users.get("1234").addRole("4321");
}返回
TypeError: client.users.get(...).addRole is not a function
^guild.members也尝试过同样的方法
发布于 2020-03-01 02:21:54
谢谢你的回答“Jakye”,我做到了这一点:
let guild = client.guilds.get("111");
let user = guild.members.get("222");
function one() {
user.addRole("333");
}我在用Cron做函数调用。
https://stackoverflow.com/questions/60468691
复制相似问题