fix/overwrite nitrado credentials
This commit is contained in:
2 files changed
+5
-3
No files matched your search
+4
-2
@@ -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
@@ -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": {
|
||||||
|
|||||||
Reference in new issue
Block a user