Discord.js - UnhandledPromiseRejectionWarning: RangeError [MESSAGE_NONCE_TYPE]: Message nonce must fit in an unsigned 64-bit integer

泄露秘密 提交于 2021-01-29 09:29:31

问题


I'm currently working on a Discord bot (using discord.js) and I'm getting the following error, but only randomly: UnhandledPromiseRejectionWarning: RangeError [MESSAGE_NONCE_TYPE]: Message nonce must fit in an unsigned 64-bit integer.

It appears the error is coming from Discord's API, but I'm not sure why exactly - again, it occurs randomly it seems, so hard to narrow down the cause. Any advice?

This is the rest of the error:

at APIMessage.resolveData (node_modules\discord.js\src\structures\APIMessage.js:155:44)
    at TextChannel.send (node_modules\discord.js\src\structures\interfaces\TextBasedChannel.js:166:62)
    at Message.reply (node_modules\discord.js\src\structures\Message.js:562:25)
    at Object.execute (commands\skill.js:12:24)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)

来源:https://stackoverflow.com/questions/64002528/discord-js-unhandledpromiserejectionwarning-rangeerror-message-nonce-type

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!