Changed delete messageID to be used again
parent
e83a060c1f
commit
cb0442c53d
|
@ -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});
|
||||
|
|
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue