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')