Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- TypeError [INVALID_TYPE]: Supplied roles is not a Role, Snowflake or Array or Collection of Roles or Snowflakes.
- at GuildMemberRoleManager.add (/home/runner/Blue-Bay/node_modules/discord.js/src/managers/GuildMemberRoleManager.js:93:15)
- at Client.<anonymous> (/home/runner/Blue-Bay/index.js:129:39)
- at Client.emit (events.js:314:20)
- at Client.EventEmitter.emit (domain.js:483:12)
- at PresenceUpdateAction.handle (/home/runner/Blue-Bay/node_modules/discord.js/src/client/actions/PresenceUpdate.js:39:19)
- at Object.module.exports [as PRESENCE_UPDATE] (/home/runner/Blue-Bay/node_modules/discord.js/src/client/websocket/handlers/PRESENCE_UPDATE.js:4:33)
- at WebSocketManager.handlePacket (/home/runner/Blue-Bay/node_modules/discord.js/src/client/websocket/WebSocketManager.js:384:31)
- at WebSocketShard.onPacket (/home/runner/Blue-Bay/node_modules/discord.js/src/client/websocket/WebSocketShard.js:444:22)
- at WebSocketShard.onMessage (/home/runner/Blue-Bay/node_modules/discord.js/src/client/websocket/WebSocketShard.js:301:10)
- at WebSocket.onMessage (/home/runner/Blue-Bay/node_modules/ws/lib/event-target.js:132:16) {
- [Symbol(code)]: 'INVALID_TYPE'
- }
- (node:259) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'id' of undefined
- (node:259) 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: 2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement