Skip to content

Commit

Permalink
Fixes, Add Button to Reinstall
Browse files Browse the repository at this point in the history
  • Loading branch information
TecEash1 committed Oct 23, 2023
1 parent d4470a4 commit a239d78
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
14 changes: 14 additions & 0 deletions buttons.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,20 @@ const buttons = {
.setStyle(ButtonStyle.Success),
),

adb_installation: new ActionRowBuilder()
.addComponents(
new ButtonBuilder()
.setCustomId('adb')
.setLabel('ADB Uninstall')
.setEmoji("💾")
.setStyle(ButtonStyle.Success),
new ButtonBuilder()
.setCustomId('installation')
.setLabel('Installation')
.setEmoji("⚙️")
.setStyle(ButtonStyle.Danger),
),

servers: new ActionRowBuilder()
.addComponents(
new ButtonBuilder()
Expand Down
2 changes: 1 addition & 1 deletion embeds.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion interactions/slash/misc/faq.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,11 @@ module.exports = {
case "essentials_questcraft":
await interaction.reply({embeds: [embeds.essentials_questcraft]});
break;
case "installation":
await interaction.reply({embeds: [embeds.installation]});
break;
case "reinstall":
await interaction.reply({embeds: [embeds.reinstall], components:[buttons.adb]});
await interaction.reply({embeds: [embeds.reinstall], components:[buttons.adb_installation]});
break;
case "releases":
await interaction.reply({embeds: [embeds.releases], components:[buttons.installation]});
Expand Down

0 comments on commit a239d78

Please sign in to comment.