So i have this code:
const { description } = require("./embed.command");
const { content } = require("discord.js")
const { message } = require("discord.js")
const { Client, Message } = require("discord.js")
module.exports = {
name: "embed",
description: "Sending embed ",
run({ channel }) {
const args = message.content.split(" ").slice(1);
const embed = new MessageEmbed()
.setTitle("TITLE")
.setDescription(args)
.setColor('RANDOM')
message.channel.send(embed)
}
}```
And this error:
```TypeError: Cannot read property 'content' of undefined
at Object.run (C:\Users\Kamil1\Desktop\GAMES&APPS\team\GucioBOT v2.0\src\commands\embed.command.js:25:26)
at Client.<anonymous> (C:\Users\Kamil1\Desktop\GAMES&APPS\team\GucioBOT v2.0\src\handlers\command.handler.js:178:11)
at Client.emit (events.js:327:22)
at MessageCreateAction.handle (C:\Users\Kamil1\Desktop\GAMES&APPS\team\GucioBOT v2.0\node_modules\discord.js\src\client\actions\MessageCreate.js:31:14)
at Object.module.exports [as MESSAGE_CREATE] (C:\Users\Kamil1\Desktop\GAMES&APPS\team\GucioBOT v2.0\node_modules\discord.js\src\client\websocket\handlers\MESSAGE_CREATE.js:4:32)
at WebSocketManager.handlePacket (C:\Users\Kamil1\Desktop\GAMES&APPS\team\GucioBOT v2.0\node_modules\discord.js\src\client\websocket\WebSocketManager.js:386:31)
at WebSocketShard.onPacket (C:\Users\Kamil1\Desktop\GAMES&APPS\team\GucioBOT v2.0\node_modules\discord.js\src\client\websocket\WebSocketShard.js:436:22)
at WebSocketShard.onMessage (C:\Users\Kamil1\Desktop\GAMES&APPS\team\GucioBOT v2.0\node_modules\discord.js\src\client\websocket\WebSocketShard.js:293:10)
at WebSocket.onMessage (C:\Users\Kamil1\Desktop\GAMES&APPS\team\GucioBOT v2.0\node_modules\ws\lib\event-target.js:125:16)
at WebSocket.emit (events.js:315:20)```
**Please help!**