From cfcf16ae61dbb313a9b32afd4711a1f1e6a2b4fb Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Sun, 13 Mar 2022 22:00:22 -0400 Subject: fix: make replaceNullWith a function --- src/commands/config/config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/commands') diff --git a/src/commands/config/config.ts b/src/commands/config/config.ts index 9169180..a90a267 100644 --- a/src/commands/config/config.ts +++ b/src/commands/config/config.ts @@ -264,7 +264,7 @@ export default class ConfigCommand extends BushCommand { break; } case 'delete': { - await message.guild.setSetting(setting, guildSettingsObj[setting].replaceNullWith, message.member); + await message.guild.setSetting(setting, guildSettingsObj[setting].replaceNullWith(), message.member); const messageOptions = await this.generateMessageOptions(message, setting); msg = (await message.util.reply(messageOptions)) as Message; break; -- cgit