Answer the question
In order to leave comments, you need to log in
Why is there an error, discordbot (embeds)?
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
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question