C:/Program Files/Git/settings reset cmd

This commit is contained in:
SowinskiBraeden committed 2022-08-30 12:00:58 -07:00
1 parent 7c8c484122
commit aab4872a00
2 files changed
+70

No files matched your search

+25
View File
@@ -332,6 +332,12 @@ module.exports = {
required: true,
}]
},
{
name: "reset",
description: "Restore all settings to default configurations",
value: "reset",
type: 1,
},
{
name: "view",
description: "View current settings configuration",
@@ -882,6 +888,25 @@ module.exports = {
.setTitle(title)
return interaction.send({ embeds: [successEmbed] });
} else if (args[0].name == 'reset') {
const prompt = new EmbedBuilder()
.setTitle(`Woah!? Hold on.`)
.setDescruotion('Are you sure you wish to remove all your configurations for this guild?')
.setColor(client.config.Colors.Default)
const opt = new ActionRowBuilder()
.addComponents(
new ButtonBuilder()
.setCustomId(`settingsReset-yes-${interaction.member.user.id}`)
.setLabel("Yes")
.setStyle(ButtonStyle.Danger),
new ButtonBuilder()
.setCustomId(`settingsReset-no-${interaction.member.user.id}`)
.setLabel("No")
.setStyle(ButtonStyle.Success)
)
return interaction.send({ embeds: [prompt], components: [opt], flags: (1 << 6) });
} else if (args[0].name == 'view') {
const tweetChannel = GuildDB.tweetChannel ? `\n╚➤ <#${GuildDB.tweetChannel}>` : '';