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.message.delete();
|
||||||
await interaction.reply({ content: 'Message has been deleted', ephemeral: true});
|
await interaction.reply({ content: 'Message has been deleted', ephemeral: true});
|
||||||
|
|
|
@ -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')
|
||||||
|
|
Loading…
Reference in New Issue