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