Problem with discord.js

Whenever I try to do a kick command, this error comes up:

(node:21807) UnhandledPromiseRejectionWarning: DiscordAPIError: Missing Permissions

9:03 AM

at RequestHandler.execute (/rbd/pnpm-volume/cb1b521d-0208-47d0-a69b-ad7b82307a53/node_modules/.registry.npmjs.org/discord.js/12.5.1/node_modules/discord.js/src/rest/RequestHandler.js:154:13)

9:03 AM

at processTicksAndRejections (internal/process/task_queues.js:88:5)

9:03 AM

at async RequestHandler.push (/rbd/pnpm-volume/cb1b521d-0208-47d0-a69b-ad7b82307a53/node_modules/.registry.npmjs.org/discord.js/12.5.1/node_modules/discord.js/src/rest/RequestHandler.js:39:14)

9:03 AM

(node:21807) 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: 1)

9:03 AM

(node:21807) [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.

How can I fix this?

Are you sure that your bot has “Kick Members” permission?

2 Likes

also it needs to be above all roles that you want it to beable to kick, so below mods normaly

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.