iNotLazo

Untitled

Sep 30th, 2020
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.55 KB | None | 0 0
  1. { DiscordAPIError: Missing Permissions
  2. at RequestHandler.execute (/root/sololegends/node_modules/discord.js/src/rest/RequestHandler.js:170:25)
  3. at process._tickCallback (internal/process/next_tick.js:68:7)
  4. name: 'DiscordAPIError',
  5. message: 'Missing Permissions',
  6. method: 'put',
  7. path:
  8. '/guilds/723946380627804211/members/522541556079525893/roles/731903569594417273',
  9. code: 50013,
  10. httpStatus: 403 }
  11. /root/sololegends/sololegends.js:97
  12. let perms = message.member.hasPermission("BAN_MEMBERS");
  13. ^
  14.  
  15. TypeError: Cannot read property 'hasPermission' of null
  16. at Client.client.on (/root/sololegends/sololegends.js:97:30)
  17. at Client.emit (events.js:198:13)
  18. at MessageCreateAction.handle (/root/sololegends/node_modules/discord.js/src/client/actions/MessageCreate.js:31:14)
  19. at Object.module.exports [as MESSAGE_CREATE] (/root/sololegends/node_modules/discord.js/src/client/websocket/handlers/MESSAGE_CREATE.js:4:32)
  20. at WebSocketManager.handlePacket (/root/sololegends/node_modules/discord.js/src/client/websocket/WebSocketManager.js:384:31)
  21. at WebSocketShard.onPacket (/root/sololegends/node_modules/discord.js/src/client/websocket/WebSocketShard.js:444:22)
  22. at WebSocketShard.onMessage (/root/sololegends/node_modules/discord.js/src/client/websocket/WebSocketShard.js:301:10)
  23. at WebSocket.onMessage (/root/sololegends/node_modules/ws/lib/event-target.js:125:16)
  24. at WebSocket.emit (events.js:198:13)
  25. at Receiver.receiverOnMessage (/root/sololegends/node_modules/ws/lib/websocket.js:797:20)
Add Comment
Please, Sign In to add comment