Fix config get command not returning the right key value name
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-14 17:16:37 +01:00
parent 9968e2e5fb
commit d8732491c4

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>`);
}
}