Skip to content

Commit

Permalink
Fix invalid config value not showing properly (#264)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vylpes authored Sep 30, 2023
1 parent 82f7aee commit c3ca378
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/commands/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,13 @@ export default class Config extends Command {
if (setting) {
await interaction.reply(`\`${key.value}\`: \`${setting.Value}\``);
} else {
await interaction.reply(`\`${key.value}\`: \`${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>`);
}
}
}

Expand Down

0 comments on commit c3ca378

Please sign in to comment.