fix/overwrite nitrado credentials

This commit is contained in:
SowinskiBraeden committed 2024-04-24 12:19:13 -07:00
1 parent 8450111b5c
commit f46c5d0ef6
2 files changed
+5 -3

No files matched your search

+4 -2
View File
@@ -299,13 +299,15 @@ module.exports = {
const Auth = new ActionRowBuilder().addComponents(new TextInputBuilder()
.setCustomId('AuthInput')
.setLabel('Your Nitrado Authentication Token')
.setPlaceholder("This will be encrypted to protect your server!")
.setStyle(TextInputStyle.Short)
.setRequired(true)
);
NitradoCredentials.addComponents(ServerID, UserID, Auth);
return interaction.update(NitradoCredentials);
// TODO: Figure out how to remove the prompt buttons and the embed.
return interaction.showModal(NitradoCredentials);
} else {
return interaction.update({ embeds: [], components: [], content: 'Cancelled Overwriting Nitrado Server Information', flags: (1 << 6) });
}