Fix config get command not returning the right key value name #334

Merged
Vylpes merged 1 commit from feature/289-config-name into develop 2023-08-18 21:04:07 +01:00

View file

@ -116,9 +116,9 @@ export default class Config extends Command {
const setting = server.Settings.filter(x => x.Key == key.value)[0];
if (setting) {
await interaction.reply(`\`${key}\`: \`${setting.Value}\``);
await interaction.reply(`\`${key.value}\`: \`${setting.Value}\``);
} else {
await interaction.reply(`\`${key}\`: \`${DefaultValues.GetValue(key.value.toString())}\` <DEFAULT>`);
await interaction.reply(`\`${key.value}\`: \`${DefaultValues.GetValue(key.value.toString())}\` <DEFAULT>`);
}
}
@ -191,4 +191,4 @@ export default class Config extends Command {
await interaction.reply('Setting has been set.');
}
}
}