Fix invalid config value not showing properly
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing

This commit is contained in:
Ethan Lane 2023-08-16 16:13:44 +01:00
parent 2d48a6fde2
commit fa4236d8a1

View file

@ -118,7 +118,13 @@ export default class Config extends Command {
if (setting) {
await interaction.reply(`\`${key}\`: \`${setting.Value}\``);
} else {
await interaction.reply(`\`${key}\`: \`${DefaultValues.GetValue(key.value.toString())}\` <DEFAULT>`);
var defaultValue = DefaultValues.GetValue(key.value.toString());
if (defaultValue) {
await interaction.reply(`\`${key}\`: \`${defaultValue}\` <DEFAULT>`);
} else {
await interaction.reply(`\`${key}\`: <NONE>`);
}
}
}