The reason why no error is being outputted is because your try
loop isn't actually doing anything. You should have the code inside of the try
loop that you want to run and if it fails then you can have the catch.
} else if (message.content.startsWith(`${prefix}eval`)) {
try {
if(!message.author.id == "535235896530960395") return;
var result = message.content.split(" ").slice(1).join(" ")
let evaled = eval(result);
const evalembed = new Discord.MessageEmbed()
.setTitle("Input")
.setDescription(result)
.setFooter("AG Bot")
.setTimestamp()
message.channel.send(evalembed)
} catch (err) {
message.channel.send(``ERROR` ```xl
${clean(err)}
````);
}
}
});
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…