botkalista / discord.js.userbot

Allow discord.js to login as User
MIT License
25 stars 6 forks source link

Cant send direct messages #8

Closed noel-debug closed 2 years ago

noel-debug commented 2 years ago

(node:8335) UnhandledPromiseRejectionWarning: DiscordAPIError: 401: Unauthorized at RequestHandler.execute (/Users/noelbahre/Developing/discordtest/node_modules/discord.js/src/rest/RequestHandler.js:154:13) at processTicksAndRejections (internal/process/task_queues.js:95:5) at async RequestHandler.push (/Users/noelbahre/Developing/discordtest/node_modules/discord.js/src/rest/RequestHandler.js:39:14) at async User.createDM (/Users/noelbahre/Developing/discordtest/node_modules/discord.js/src/structures/User.js:252:18) (Use node --trace-warnings ... to show where the warning was created) (node:8335) 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(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1) (node:8335) [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.