bornikfik
bornikfik
DIAdiscord.js - Imagine a boo! 👻
Created by house on 7/7/2023 in #djs-questions
button interaction doesnt work (d.js 14.11.0)
then use interaction.deferReply()
16 replies
DIAdiscord.js - Imagine a boo! 👻
Created by house on 7/7/2023 in #djs-questions
button interaction doesnt work (d.js 14.11.0)
here is my way of doing it no idea if it works but you can try
try {
const col = await interaction.channel.createMessageComponentCollector({
filter: (interaction) => interaction.customId === "join",
time: timeout,
}); // I want everyone to be able to click the button

col.on("collect", async (i) => {
players++;
await i.update({
embeds: [embed],
ephemeral: false,
components: [row],
});
});
}
try {
const col = await interaction.channel.createMessageComponentCollector({
filter: (interaction) => interaction.customId === "join",
time: timeout,
}); // I want everyone to be able to click the button

col.on("collect", async (i) => {
players++;
await i.update({
embeds: [embed],
ephemeral: false,
components: [row],
});
});
}
16 replies