我正试图和我的朋友开玩笑,所以每当他试图使用另一个以"-“开头的不和谐机器人命令时,它会使他耳聋,所以他听不见。我一直在到处寻找,试图找到一个解决方案,但我无法找到一个有效的。我尝试使用guild.fetchMember()函数,但我不确定是否正确,因此它不起作用。这就是我到目前为止所知道的(只有最后一个函数有问题):
发布于 2020-04-11 19:59:58
朋友,你可以这样做
bot.on("message", message =>{
// confirming that its your friend who is using the command.
if(message.author.id != "your friend's id") return;
if(message.content.startsWith("-")){
message.guild.members.cache.find(member => member.id == "your friend's id").voice.serverDeaf;
};
});https://stackoverflow.com/questions/61152714
复制相似问题