hello my name is Esteban, and I have a bug that I have not been able to solve.
In the beginning it appears this if (message.content.startsWith(prefix + “verify me”)) { and when I had already activated the console I get this message not defined and it appears that the error is if you help me to fix it. it will be very helpful because I’m a newbie
if (message.content.startsWith(prefix + “verificarme”)) {
const bot = client.emojis.find(emoji => emoji.name === "NLoliDancenk");
const bot2 = client.emojis.find(emoji => emoji.name === "NLoliEat");
if (message.channel.id !== "814616939116494898") return;
message.channel.send(bot2+" Estoy revisando tus datos, aguarde un momento...")
.then(async m => {
setTimeout(() => {
m.edit("" + bot + ""+bot+" ¡Verificando que no eres un robot! " +bot2+""+bot2+"" );
}, 5000);
setTimeout(() => {
m.edit(""+bot+ " Verificando que no seas una multicuenta...");
}, 8000);
setTimeout(() => { // Ediciones para darle un toque mas bonito
const embed = new Discord.RichEmbed()
.setColor("GREEN")
.setDescription("¡" +message.author.username + " Felicitaciones, has sido verificado correctamente!");
m.edit(embed);
}, 12000);
setTimeout(() => {
message.member.addRole("Rol a agregar");
message.member.removeRole("ID-ROL-AREMOVER")
}, 14000);
m.delete(20000);
});
message.delete();
}