Changed delete messageID to be used again

imgbot
kieranrobson 2022-05-13 12:06:40 +01:00
parent e83a060c1f
commit cb0442c53d
2 changed files with 2 additions and 2 deletions

View File

@ -72,7 +72,7 @@ client.on("interactionCreate", async (interaction) => {
} }
} }
if(interaction.customId == "paidmemberdelete") if(interaction.customId == "deletemessage")
{ {
await interaction.message.delete(); await interaction.message.delete();
await interaction.reply({ content: 'Message has been deleted', ephemeral: true}); await interaction.reply({ content: 'Message has been deleted', ephemeral: true});

View File

@ -14,7 +14,7 @@ client.on('modalSubmitInteraction', async (interaction) => {
const row = new discord.MessageActionRow() const row = new discord.MessageActionRow()
.addComponents( .addComponents(
new discord.MessageButton() new discord.MessageButton()
.setCustomId('paidmemberdelete') .setCustomId('deletemessage')
.setEmoji('') .setEmoji('')
.setLabel('Delete Message') .setLabel('Delete Message')
.setStyle('DANGER') .setStyle('DANGER')