Skip to content
This repository has been archived by the owner on Aug 28, 2020. It is now read-only.

Commit

Permalink
fix: Guild always null in SettingsFolder#update (#560)
Browse files Browse the repository at this point in the history
  • Loading branch information
vladfrangu authored and kyranet committed Apr 17, 2019
1 parent c7e1c7f commit ec68f4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/settings/SettingsFolder.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit ec68f4e

Please sign in to comment.