treboryx/discord-bot-protection

Bot didnt give verified role to member

Anonymyous678 opened this issue · 0 comments

Hi pls help me how to solve this problem:

(node:17132) UnhandledPromiseRejectionWarning: TypeError: Supplied parameter was neither a Role nor a Snowflake.
    at GuildMember.addRole (/rbd/pnpm-volume/43a45f5d-88bf-4795-b058-3044e4e86270/node_modules/.registry.npmjs.org/discord.js/11.6.3/node_modules/discord.js/src/structures/GuildMember.js:477:38)
at Client.client.on (/app/app.js:142:14)
    at process._tickCallback (internal/process/next_tick.js:68:7)
(node:17132) 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)