UPD: What a beautiful thing - “rewind”! Went back to a day before - pshhh! bot works perfectly. Still don’t know what is the problem was
Hello! Today I ran my bot on discord.js and typed the command “settings prefix #” and got an error in the console:
(node:4737) UnhandledPromiseRejectionWarning: TypeError: Converting circular structure to JSON
at stringify ()
at Snekfetch.send (/rbd/pnpm-volume/a84f5d27-ecce-40d0-b446-28f4e8fd59fb/node_modules/.registry.npmjs.org/snekfetch/3.6.4/node_modules/snekfetch/src/index.js:120:19)
at APIRequest.gen (/rbd/pnpm-volume/a84f5d27-ecce-40d0-b446-28f4e8fd59fb/node_modules/.registry.npmjs.org/discord.js/11.3.2/node_modules/discord.js/src/client/rest/APIRequest.js:46:15)
at resolve (/rbd/pnpm-volume/a84f5d27-ecce-40d0-b446-28f4e8fd59fb/node_modules/.registry.npmjs.org/discord.js/11.3.2/node_modules/discord.js/src/client/rest/RequestHandlers/Sequential.js:52:20)
at new Promise ()
at SequentialRequestHandler.execute (/rbd/pnpm-volume/a84f5d27-ecce-40d0-b446-28f4e8fd59fb/node_modules/.registry.npmjs.org/discord.js/11.3.2/node_modules/discord.js/src/client/rest/RequestHandlers/Sequential.js:51:12)
at SequentialRequestHandler.handle (/rbd/pnpm-volume/a84f5d27-ecce-40d0-b446-28f4e8fd59fb/node_modules/.registry.npmjs.org/discord.js/11.3.2/node_modules/discord.js/src/client/rest/RequestHandlers/Sequential.js:94:10)
at SequentialRequestHandler.push (/rbd/pnpm-volume/a84f5d27-ecce-40d0-b446-28f4e8fd59fb/node_modules/.registry.npmjs.org/discord.js/11.3.2/node_modules/discord.js/src/client/rest/RequestHandlers/Sequential.js:41:10)
at Promise (/rbd/pnpm-volume/a84f5d27-ecce-40d0-b446-28f4e8fd59fb/node_modules/.registry.npmjs.org/discord.js/11.3.2/node_modules/discord.js/src/client/rest/RESTManager.js:26:15)
at new Promise ()
(node:4737) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
(node:4737) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
My bot running on the latest version of discord.js
idk why i got error. Went back to previous commit, but same.
Bot: Glitch :・゚✧ (it’s not a full version of my bot, full on github)
GitHub: https://github.com/jarvis394/expo_bot