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
+4 -2

No files matched your search

+3 -1
View File
@@ -299,13 +299,15 @@ module.exports = {
const Auth = new ActionRowBuilder().addComponents(new TextInputBuilder() const Auth = new ActionRowBuilder().addComponents(new TextInputBuilder()
.setCustomId('AuthInput') .setCustomId('AuthInput')
.setLabel('Your Nitrado Authentication Token') .setLabel('Your Nitrado Authentication Token')
.setPlaceholder("This will be encrypted to protect your server!")
.setStyle(TextInputStyle.Short) .setStyle(TextInputStyle.Short)
.setRequired(true) .setRequired(true)
); );
NitradoCredentials.addComponents(ServerID, UserID, Auth); 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 { } else {
return interaction.update({ embeds: [], components: [], content: 'Cancelled Overwriting Nitrado Server Information', flags: (1 << 6) }); return interaction.update({ embeds: [], components: [], content: 'Cancelled Overwriting Nitrado Server Information', flags: (1 << 6) });
} }
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "dayzr-bot", "name": "dayzr-bot",
"version": "13.1.1", "version": "13.1.2",
"description": "A General Purpose Discord Bot for DayZ Nitrado Servers.", "description": "A General Purpose Discord Bot for DayZ Nitrado Servers.",
"main": "index.js", "main": "index.js",
"nodemonConfig": { "nodemonConfig": {