[英]TypeError: Cannot read properties of undefined (reading 'path') in discord.js v13
[英]Cannot read properties of undefined (reading 'delete') in Discord.js V13
我在機器人的“interactionCreate”事件中收到此錯誤,每次發生此錯誤都會導致我的機器人關閉。
TypeError: Cannot read properties of undefined (reading 'delete')
at Timeout._onTimeout (/root/Teyrox/GamesMadeInPolaDiscordBot/events/servidores/interactionCreate.js:12:403)
at listOnTimeout (node:internal/timers:557:17)
at processTimers (node:internal/timers:500:7)
錯誤發生在這行代碼,經過一段時間的研究和檢查我沒有發現這行代碼有任何錯誤
if (aBoolean) return interaction.reply({ content: `<:x_:677580192641843222>`, ephemeral: true }).then(m => setTimeout(() => m.delete().catch(() => { }), 15000));
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.