From cb0442c53d3b4c822beac64c8aa41101d51f2389 Mon Sep 17 00:00:00 2001 From: kieranrobson Date: Fri, 13 May 2022 12:06:40 +0100 Subject: [PATCH] Changed delete messageID to be used again --- events/interactionCreate.js | 2 +- events/modalSubmitInteraction.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/events/interactionCreate.js b/events/interactionCreate.js index 4345985..14f785f 100644 --- a/events/interactionCreate.js +++ b/events/interactionCreate.js @@ -72,7 +72,7 @@ client.on("interactionCreate", async (interaction) => { } } - if(interaction.customId == "paidmemberdelete") + if(interaction.customId == "deletemessage") { await interaction.message.delete(); await interaction.reply({ content: 'Message has been deleted', ephemeral: true}); diff --git a/events/modalSubmitInteraction.js b/events/modalSubmitInteraction.js index e75d102..f825c73 100644 --- a/events/modalSubmitInteraction.js +++ b/events/modalSubmitInteraction.js @@ -14,7 +14,7 @@ client.on('modalSubmitInteraction', async (interaction) => { const row = new discord.MessageActionRow() .addComponents( new discord.MessageButton() - .setCustomId('paidmemberdelete') + .setCustomId('deletemessage') .setEmoji('') .setLabel('Delete Message') .setStyle('DANGER')