From ec68f4e91cc67f3ede9fabe3bfe96a1f270121ef Mon Sep 17 00:00:00 2001 From: Vlad Frangu Date: Sun, 6 Jan 2019 19:58:39 +0200 Subject: [PATCH] fix: Guild always null in SettingsFolder#update (#560) --- src/lib/settings/SettingsFolder.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/settings/SettingsFolder.js b/src/lib/settings/SettingsFolder.js index 2f88e99ae7..716fc37f2a 100644 --- a/src/lib/settings/SettingsFolder.js +++ b/src/lib/settings/SettingsFolder.js @@ -228,7 +228,7 @@ class SettingsFolder extends Map { else if (isObject(paths)) [paths, options] = [objectToTuples(paths), args[0]]; else [options] = args; - if (!options) options = { throwOnError: false, onlyConfigurable: false, guild: null }; + if (!options) options = { throwOnError: false, onlyConfigurable: false }; options.guild = resolveGuild(this.base.gateway.client, 'guild' in options ? options.guild : this.base.target); const language = options.guild ? options.guild.language : this.base.gateway.client.languages.default;