我有 Discord.js 自定義表情符號(hào)錯(cuò)誤它看起來很簡單,但我該如何解決?我想要嵌入自定義表情符號(hào),它有效。但是當(dāng)我對(duì)自定義表情符號(hào)做出反應(yīng)時(shí),bot 不會(huì)向我發(fā)送任何內(nèi)容給 PM。我只能從卡片表情符號(hào)中得到答案。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 自定義表情符號(hào)錯(cuò)誤看起來很簡單,但我該如何解決?
aluckdog
2022-12-09 19:43:42