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.reply({ content: 'Message has been deleted', ephemeral: true});

View File

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