【发布时间】:2020-11-03 14:09:35
【问题描述】:
所以我试图在我的机器人加入 VC 时将其静音,但我得到的只是
TypeError: bot.setDeaf is not a function
我也试过了
let bot = message.guild.members.cache.get('ID');
但这也没有用。 我究竟做错了什么?我真的找不到任何可以帮助我的地方。 这是其余的。提前致谢!
let bot = client.users.cache.get('ID');
bot.setDeaf(true);
【问题讨论】:
-
看来你应该使用
setSelfDeaf而不是discord.js.org/docs/setSelfDeaf -
是的,我知道那个,但我看到其他机器人服务器自己静音,我只是想知道他们是怎么做到的?
标签: javascript node.js discord.js bots