Advertisement
Guest User

err

a guest
Dec 16th, 2019
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.03 KB | None | 0 0
  1. $ npm run start
  2.  
  3. > discordbot-djs@1.0.0 start C:\Users\webbc\Desktop\bots\KingsmanBot\discordbot-djs
  4. > node ./src/bot.js
  5.  
  6. Kingsman Test Bot#1243 has logged in.
  7. C:\Users\webbc\Desktop\bots\KingsmanBot\discordbot-djs\src\bot.js:55
  8. const embed = new discord.RichEmbed()
  9. ^
  10.  
  11. TypeError: discord.RichEmbed is not a constructor
  12. at Client.<anonymous> (C:\Users\webbc\Desktop\bots\KingsmanBot\discordbot-djs\src\bot.js:55:23)
  13. at Client.emit (events.js:210:5)
  14. at MessageCreateAction.handle (C:\Users\webbc\Desktop\bots\KingsmanBot\discordbot-djs\node_modules\discord.js\src\client\actions\MessageCreate.js:31:14)
  15. at Object.module.exports [as MESSAGE_CREATE] (C:\Users\webbc\Desktop\bots\KingsmanBot\discordbot-djs\node_modules\discord.js\src\client\websocket\handlers\MESSAGE_CREATE.js:4:32)
  16. at WebSocketManager.handlePacket (C:\Users\webbc\Desktop\bots\KingsmanBot\discordbot-djs\node_modules\discord.js\src\client\websocket\WebSocketManager.js:391:31)
  17. at WebSocketShard.onPacket (C:\Users\webbc\Desktop\bots\KingsmanBot\discordbot-djs\node_modules\discord.js\src\client\websocket\WebSocketShard.js:428:22)
  18. at WebSocketShard.onMessage (C:\Users\webbc\Desktop\bots\KingsmanBot\discordbot-djs\node_modules\discord.js\src\client\websocket\WebSocketShard.js:287:10)
  19. at WebSocket.onMessage (C:\Users\webbc\Desktop\bots\KingsmanBot\discordbot-djs\node_modules\ws\lib\event-target.js:120:16)
  20. at WebSocket.emit (events.js:210:5)
  21. at Receiver.receiverOnMessage (C:\Users\webbc\Desktop\bots\KingsmanBot\discordbot-djs\node_modules\ws\lib\websocket.js:800:20)
  22. npm ERR! code ELIFECYCLE
  23. npm ERR! errno 1
  24. npm ERR! discordbot-djs@1.0.0 start: `node ./src/bot.js`
  25. npm ERR! Exit status 1
  26. npm ERR!
  27. npm ERR! Failed at the discordbot-djs@1.0.0 start script.
  28. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
  29.  
  30. npm ERR! A complete log of this run can be found in:
  31. npm ERR! C:\Users\webbc\AppData\Roaming\npm-cache\_logs\2019-12-16T08_00_28_225Z-debug.log
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement