问题
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