我有 Discord.js 自定義表情符號錯誤它看起來很簡單,但我該如何解決?我想要嵌入自定義表情符號,它有效。但是當我對自定義表情符號做出反應時,bot 不會向我發送任何內容給 PM。我只能從卡片表情符號中得到答案。Error: (node:20548) UnhandledPromiseRejectionWarning: DiscordAPIError: Cannot send messages to this user at RequestHandler.execute (d:\Users\Pc\Desktop\Musu botai\Donate\node_modules\discord.js\src\rest\RequestHandler.js:170:25) at processTicksAndRejections (internal/process/task_queues.js:97:5)client.on('messageReactionAdd', async (reaction,user) => { if (reaction.emoji.name === '706559022286897302') { user.send(direktas) } else if (reaction.emoji.name === '706754740767424572') { user.send("ssss esi") } else if (reaction.emoji.name === '??') { user.send("dddd") }});client.login(process.env.BOT_TOKEN);
Discord.js 自定義表情符號錯誤看起來很簡單,但我該如何解決?
aluckdog
2022-12-09 19:43:42