diff --git a/structure/client/components/settings/utility/GuildPrefix.js b/structure/client/components/settings/utility/GuildPrefix.js index 481a533..41764a7 100644 --- a/structure/client/components/settings/utility/GuildPrefix.js +++ b/structure/client/components/settings/utility/GuildPrefix.js @@ -26,7 +26,7 @@ class GuildPrefixSetting extends Setting { async handle(message, params) { - const [ prefix ] = params; + let [ prefix ] = params; const MaxCharacters = 6; if(prefix.length > MaxCharacters) return { @@ -39,7 +39,7 @@ class GuildPrefixSetting extends Setting { error: true }; - if (prefix === 'reset') prefix = this.default.prefix; + if (prefix === 'reset') ({ prefix } = this.default); await message.guild._updateSettings({ [this.index]: prefix }); return {