您好,需要向用户发送 PM,我尝试了这个命令
msg.author.send("text")
但是当我尝试运行此命令时出现此错误
DiscordAPIError: Cannot send messages to this user
at RequestHandler.execute (C:\Users\GreXLin85\Desktop\Projelerim\JS\project\node_modules\discord.js\src\rest\RequestHandler.js:154:13)
at processTicksAndRejections (node:internal/process/task_queues:93:5)
at async RequestHandler.push (C:\Users\GreXLin85\Desktop\Projelerim\JS\project\node_modules\discord.js\src\rest\RequestHandler.js:39:14) {
method: 'post',
path: '/channels/782746558520360960/messages',
code: 50007,
httpStatus: 403
}
汪汪一只猫
相关分类