¿Por qué no está esperando una respuesta? simplemente ejecuta todo el código Alguien me dijo que el filtro es parte de las opciones del recopilador v13, ¿hay alguna forma de hacerlo entonces?
const target = message.mentions.users.first(); if (!target) return message.reply("you have to mention somebody"); await message.reply( `you proposed to ${target}! Is it **YES** or **NO**?` ); const filter = (m) => m.content.toLowerCase().startsWith("yes") && !m.author.bot && m.author.target; const main = message.guild.channels.resolve("706263571562102835"); main.awaitMessages(filter, { errors: ["time"], max: 1, time: 900000, }); await message.reply( `You e ${target} are now married!` ); }, };
message.author.target
no existe. Creo que lo que quisiste hacer es
const filter = (m) => m.content.toLowerCase().startsWith("yes") && !m.author.bot && m.author.id == target.id
Esto significa que el filtro solo detectará mensajes que: comiencen con "sí", cuando el autor no sea un bot y cuando la identificación del autor sea la misma que la del objetivo.