Advertisement
Q_Ninja

Untitled

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