Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ npm run start
- > discordbot-djs@1.0.0 start C:\Users\webbc\Desktop\bots\KingsmanBot\discordbot-djs
- > node ./src/bot.js
- Kingsman Test Bot#1243 has logged in.
- C:\Users\webbc\Desktop\bots\KingsmanBot\discordbot-djs\src\bot.js:55
- const embed = new discord.RichEmbed()
- ^
- TypeError: discord.RichEmbed is not a constructor
- at Client.<anonymous> (C:\Users\webbc\Desktop\bots\KingsmanBot\discordbot-djs\src\bot.js:55:23)
- at Client.emit (events.js:210:5)
- at MessageCreateAction.handle (C:\Users\webbc\Desktop\bots\KingsmanBot\discordbot-djs\node_modules\discord.js\src\client\actions\MessageCreate.js:31:14)
- 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)
- at WebSocketManager.handlePacket (C:\Users\webbc\Desktop\bots\KingsmanBot\discordbot-djs\node_modules\discord.js\src\client\websocket\WebSocketManager.js:391:31)
- at WebSocketShard.onPacket (C:\Users\webbc\Desktop\bots\KingsmanBot\discordbot-djs\node_modules\discord.js\src\client\websocket\WebSocketShard.js:428:22)
- at WebSocketShard.onMessage (C:\Users\webbc\Desktop\bots\KingsmanBot\discordbot-djs\node_modules\discord.js\src\client\websocket\WebSocketShard.js:287:10)
- at WebSocket.onMessage (C:\Users\webbc\Desktop\bots\KingsmanBot\discordbot-djs\node_modules\ws\lib\event-target.js:120:16)
- at WebSocket.emit (events.js:210:5)
- at Receiver.receiverOnMessage (C:\Users\webbc\Desktop\bots\KingsmanBot\discordbot-djs\node_modules\ws\lib\websocket.js:800:20)
- npm ERR! code ELIFECYCLE
- npm ERR! errno 1
- npm ERR! discordbot-djs@1.0.0 start: `node ./src/bot.js`
- npm ERR! Exit status 1
- npm ERR!
- npm ERR! Failed at the discordbot-djs@1.0.0 start script.
- npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
- npm ERR! A complete log of this run can be found in:
- 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