if(command === "passport-info") {
const Embed = new Discord.MessageEmbed()
Embed.setColor('#917529i5');
try {
messange.channel.send(Embed) //ошибка в этом участке кода
}
catch(err) {
console.log(err);
console.log("error");
}
}
Вот сама ошибка
ReferenceError: messange is not defined
at newFunction (C:\Users\User\Desktop\discordbot on JS\main.js:64:4)
at Client.<anonymous> (C:\Users\User\Desktop\discordbot on JS\main.js:44:2)
at Client.emit (events.js:315:20)
at MessageCreateAction.handle (C:\Users\User\Desktop\discordbot on JS\node_modules\discord.js\src\client\actions\MessageCreate.js:31:14)
at Object.module.exports [as MESSAGE_CREATE] (C:\Users\User\Desktop\discordbot on JS\node_modules\discord.js\src\client\websocket\handlers\MESSAGE_CREATE.js:4:32)
at WebSocketManager.handlePacket (C:\Users\User\Desktop\discordbot on JS\node_modules\discord.js\src\client\websocket\WebSocketManager.js:384:31)
at WebSocketShard.onPacket (C:\Users\User\Desktop\discordbot on JS\node_modules\discord.js\src\client\websocket\WebSocketShard.js:444:22)
at WebSocketShard.onMessage (C:\Users\User\Desktop\discordbot on JS\node_modules\discord.js\src\client\websocket\WebSocketShard.js:301:10)
at WebSocket.onMessage (C:\Users\User\Desktop\discordbot on JS\node_modules\ws\lib\event-target.js:125:16)
at WebSocket.emit (events.js:315:20)
error