diff --git a/commands/admin/autoresponse.js b/commands/admin/autoresponse.js index 34255a6f..b16e3b6a 100644 --- a/commands/admin/autoresponse.js +++ b/commands/admin/autoresponse.js @@ -32,7 +32,8 @@ export default { await interaction.reply({ content: 'Autoresponse is already enabled, do you wish to disable it?', components: [row], ephemeral: true }); - client.once('interactionCreate', async (interactionMenu) => { + client.on('interactionCreate', async (interactionMenu) => { + if (interaction.user !== interactionMenu.user) return; if (!interactionMenu.isButton) return; interactionMenu.update({ components: [] }); if (interactionMenu.customId === 'yes') { diff --git a/commands/admin/bye.js b/commands/admin/bye.js index 741d8463..787ee443 100644 --- a/commands/admin/bye.js +++ b/commands/admin/bye.js @@ -44,7 +44,8 @@ export default { await interaction.reply({ content: 'The server already has a message set, do you want to edit it or remove it?', components: [row], ephemeral: true }); - client.once('interactionCreate', async (interactionMenu) => { + client.on('interactionCreate', async (interactionMenu) => { + if (interaction.user !== interactionMenu.user) return; if (!interactionMenu.isButton) return; interactionMenu.update({ components: [] }); if (interactionMenu.customId === 'edit') { diff --git a/commands/admin/quotation.js b/commands/admin/quotation.js index 78395672..673b0e54 100644 --- a/commands/admin/quotation.js +++ b/commands/admin/quotation.js @@ -32,7 +32,8 @@ export default { await interaction.reply({ content: 'Quotation is already enabled, do you wish to disable it?', components: [row], ephemeral: true }); - client.once('interactionCreate', async (interactionMenu) => { + client.on('interactionCreate', async (interactionMenu) => { + if (interaction.user !== interactionMenu.user) return; if (!interactionMenu.isButton) return; interactionMenu.update({ components: [] }); if (interactionMenu.customId === 'yes') { diff --git a/commands/admin/welcome.js b/commands/admin/welcome.js index 5d70fd09..a49dd5fc 100644 --- a/commands/admin/welcome.js +++ b/commands/admin/welcome.js @@ -45,7 +45,8 @@ export default { await interaction.reply({ content: 'The server already has a message set, do you want to edit it or remove it?', components: [row], ephemeral: true }); - client.once('interactionCreate', async (interactionMenu) => { + client.on('interactionCreate', async (interactionMenu) => { + if (interaction.user !== interactionMenu.user) return; if (!interactionMenu.isButton) return; interactionMenu.update({ components: [] }); if (interactionMenu.customId === 'edit') { diff --git a/commands/owner/ublacklist.js b/commands/owner/ublacklist.js index 75661cd0..1c0d5640 100644 --- a/commands/owner/ublacklist.js +++ b/commands/owner/ublacklist.js @@ -54,7 +54,8 @@ export default { await interaction.editReply({ content: 'This user is already blacklisted, do you want to unblacklist him?', ephemeral: true, components: [row] }); - interaction.client.once('interactionCreate', async (interactionMenu) => { + interaction.client.on('interactionCreate', async (interactionMenu) => { + if (interaction.user !== interactionMenu.user) return; if (!interactionMenu.isButton) return; interactionMenu.update({ components: [] }); if (interactionMenu.customId === 'yes') { diff --git a/commands/utility/optout.js b/commands/utility/optout.js index 277fe715..e1548d20 100644 --- a/commands/utility/optout.js +++ b/commands/utility/optout.js @@ -31,7 +31,8 @@ export default { await interaction.reply({ content: 'You are already opt out, do you wish to opt in?', components: [row] }); - client.once('interactionCreate', async (interactionMenu) => { + client.on('interactionCreate', async (interactionMenu) => { + if (interaction.user !== interactionMenu.user) return; if (!interactionMenu.isButton) return; interactionMenu.update({ components: [] }); if (interactionMenu.customId === 'yes') {