13.0.0 invoice features + configuration

This commit is contained in:
SowinskiBraeden committed 2022-10-16 19:38:09 -07:00
1 parent 43d6a7742a
commit 6f2f24da50
7 files changed
+418 -13

No files matched your search

+12 -12
View File
@@ -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: [] });
}
}
}