Fix invalid config value not showing properly
This commit is contained in:
parent
2d48a6fde2
commit
fa4236d8a1
1 changed files with 7 additions and 1 deletions
|
@ -118,7 +118,13 @@ export default class Config extends Command {
|
||||||
if (setting) {
|
if (setting) {
|
||||||
await interaction.reply(`\`${key}\`: \`${setting.Value}\``);
|
await interaction.reply(`\`${key}\`: \`${setting.Value}\``);
|
||||||
} else {
|
} 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>`);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue