Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Last login: Sat Jul 18 02:59:03 on ttys000
- Ends-MacBook:~ Guest1$ cd /Users/Guest1/Desktop/Wrapper-Online-Bot
- Ends-MacBook:Wrapper-Online-Bot Guest1$ node index.js
- Logged in as Wrapper Online Bot#0874!
- (node:4179) UnhandledPromiseRejectionWarning: DiscordAPIError: Missing Permissions
- at /Users/Guest1/Desktop/Wrapper-Online-Bot/node_modules/discord.js/src/client/rest/RequestHandlers/Sequential.js:85:15
- at /Users/Guest1/Desktop/Wrapper-Online-Bot/node_modules/snekfetch/src/index.js:215:21
- at processTicksAndRejections (internal/process/task_queues.js:97:5)
- (node:4179) 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)
- (node:4179) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
- /Users/Guest1/Desktop/Wrapper-Online-Bot/index.js:18
- if (!message.member.hasPermission(["KICK_MEMBERS", "ADMINISTRATOR"])) return //admin only
- ^
- TypeError: Cannot read property 'hasPermission' of null
- at Client.<anonymous> (/Users/Guest1/Desktop/Wrapper-Online-Bot/index.js:18:24)
- at Client.emit (events.js:327:22)
- at MessageCreateHandler.handle (/Users/Guest1/Desktop/Wrapper-Online-Bot/node_modules/discord.js/src/client/websocket/packets/handlers/MessageCreate.js:9:34)
- at WebSocketPacketManager.handle (/Users/Guest1/Desktop/Wrapper-Online-Bot/node_modules/discord.js/src/client/websocket/packets/WebSocketPacketManager.js:105:65)
- at WebSocketConnection.onPacket (/Users/Guest1/Desktop/Wrapper-Online-Bot/node_modules/discord.js/src/client/websocket/WebSocketConnection.js:333:35)
- at WebSocketConnection.onMessage (/Users/Guest1/Desktop/Wrapper-Online-Bot/node_modules/discord.js/src/client/websocket/WebSocketConnection.js:296:17)
- at WebSocket.onMessage (/Users/Guest1/Desktop/Wrapper-Online-Bot/node_modules/ws/lib/event-target.js:120:16)
- at WebSocket.emit (events.js:315:20)
- at Receiver.receiverOnMessage (/Users/Guest1/Desktop/Wrapper-Online-Bot/node_modules/ws/lib/websocket.js:789:20)
- at Receiver.emit (events.js:315:20)
- Ends-MacBook:Wrapper-Online-Bot Guest1$
Add Comment
Please, Sign In to add comment