Fix config get command not returning the right key value name
This commit is contained in:
parent
9968e2e5fb
commit
d8732491c4
1 changed files with 3 additions and 3 deletions
|
@ -116,9 +116,9 @@ export default class Config extends Command {
|
||||||
const setting = server.Settings.filter(x => x.Key == key.value)[0];
|
const setting = server.Settings.filter(x => x.Key == key.value)[0];
|
||||||
|
|
||||||
if (setting) {
|
if (setting) {
|
||||||
await interaction.reply(`\`${key}\`: \`${setting.Value}\``);
|
await interaction.reply(`\`${key.value}\`: \`${setting.Value}\``);
|
||||||
} else {
|
} else {
|
||||||
await interaction.reply(`\`${key}\`: \`${DefaultValues.GetValue(key.value.toString())}\` <DEFAULT>`);
|
await interaction.reply(`\`${key.value}\`: \`${DefaultValues.GetValue(key.value.toString())}\` <DEFAULT>`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue