13.0.0 invoice features + configuration
This commit is contained in:
7 files changed
+418
-13
No files matched your search
+12
-12
@@ -93,7 +93,7 @@ module.exports = {
|
||||
const opt = new ActionRowBuilder()
|
||||
.addComponents(
|
||||
new ButtonBuilder()
|
||||
.setCustomId(`Delete311`)
|
||||
.setCustomId(`Delete311`)
|
||||
.setLabel("Delete")
|
||||
.setStyle(ButtonStyle.Danger),
|
||||
)
|
||||
@@ -118,17 +118,17 @@ module.exports = {
|
||||
|
||||
Delete311: {
|
||||
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 311 Report.`)
|
||||
|
||||
return interaction.update({ embeds: [successEmbed], components: [] });
|
||||
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 311 Report.`)
|
||||
|
||||
return interaction.update({ embeds: [successEmbed], components: [] });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user