map and move interaction handlers
This commit is contained in:
9 files changed
+622
-584
No files matched your search
+19
-1
@@ -94,7 +94,7 @@ module.exports = {
|
||||
const opt = new ActionRowBuilder()
|
||||
.addComponents(
|
||||
new ButtonBuilder()
|
||||
.setCustomId(`911-delete`)
|
||||
.setCustomId(`Delete911`)
|
||||
.setLabel("Delete")
|
||||
.setStyle(ButtonStyle.Danger),
|
||||
)
|
||||
@@ -115,4 +115,22 @@ module.exports = {
|
||||
return interaction.send({ content: '911 Alerted!' });
|
||||
},
|
||||
},
|
||||
Interactions: {
|
||||
|
||||
Delete911: {
|
||||
run: async (client, interaction, GuildDB) => {
|
||||
if (!interaction.member._roles.includes(GuildDB.dispatcherRole)) {
|
||||
return interaction.reply({
|
||||
content: "This button is not for you",
|
||||
flags: (1 << 6)
|
||||
})
|
||||
}
|
||||
const successEmbed = new EmbedBuilder()
|
||||
.setColor(client.config.Colors.Green)
|
||||
.setTitle(`Successfully Deleted 911 Call.`)
|
||||
|
||||
return interaction.update({ embeds: [successEmbed], components: [] });
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user