Coolscriptguy

Untitled

Jul 18th, 2020
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.51 KB | None | 0 0
  1. Last login: Sat Jul 18 02:59:03 on ttys000
  2. Ends-MacBook:~ Guest1$ cd /Users/Guest1/Desktop/Wrapper-Online-Bot
  3. Ends-MacBook:Wrapper-Online-Bot Guest1$ node index.js
  4. Logged in as Wrapper Online Bot#0874!
  5. (node:4179) UnhandledPromiseRejectionWarning: DiscordAPIError: Missing Permissions
  6. at /Users/Guest1/Desktop/Wrapper-Online-Bot/node_modules/discord.js/src/client/rest/RequestHandlers/Sequential.js:85:15
  7. at /Users/Guest1/Desktop/Wrapper-Online-Bot/node_modules/snekfetch/src/index.js:215:21
  8. at processTicksAndRejections (internal/process/task_queues.js:97:5)
  9. (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)
  10. (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.
  11. /Users/Guest1/Desktop/Wrapper-Online-Bot/index.js:18
  12. if (!message.member.hasPermission(["KICK_MEMBERS", "ADMINISTRATOR"])) return //admin only
  13. ^
  14.  
  15. TypeError: Cannot read property 'hasPermission' of null
  16. at Client.<anonymous> (/Users/Guest1/Desktop/Wrapper-Online-Bot/index.js:18:24)
  17. at Client.emit (events.js:327:22)
  18. at MessageCreateHandler.handle (/Users/Guest1/Desktop/Wrapper-Online-Bot/node_modules/discord.js/src/client/websocket/packets/handlers/MessageCreate.js:9:34)
  19. at WebSocketPacketManager.handle (/Users/Guest1/Desktop/Wrapper-Online-Bot/node_modules/discord.js/src/client/websocket/packets/WebSocketPacketManager.js:105:65)
  20. at WebSocketConnection.onPacket (/Users/Guest1/Desktop/Wrapper-Online-Bot/node_modules/discord.js/src/client/websocket/WebSocketConnection.js:333:35)
  21. at WebSocketConnection.onMessage (/Users/Guest1/Desktop/Wrapper-Online-Bot/node_modules/discord.js/src/client/websocket/WebSocketConnection.js:296:17)
  22. at WebSocket.onMessage (/Users/Guest1/Desktop/Wrapper-Online-Bot/node_modules/ws/lib/event-target.js:120:16)
  23. at WebSocket.emit (events.js:315:20)
  24. at Receiver.receiverOnMessage (/Users/Guest1/Desktop/Wrapper-Online-Bot/node_modules/ws/lib/websocket.js:789:20)
  25. at Receiver.emit (events.js:315:20)
  26. Ends-MacBook:Wrapper-Online-Bot Guest1$
Add Comment
Please, Sign In to add comment