This commit is contained in:
Erik 2020-05-24 01:11:57 +03:00
parent eae7b07a0b
commit 4c9bd8d917

View File

@ -26,7 +26,7 @@ class GuildPrefixSetting extends Setting {
async handle(message, params) { async handle(message, params) {
const [ prefix ] = params; let [ prefix ] = params;
const MaxCharacters = 6; const MaxCharacters = 6;
if(prefix.length > MaxCharacters) return { if(prefix.length > MaxCharacters) return {
@ -39,7 +39,7 @@ class GuildPrefixSetting extends Setting {
error: true error: true
}; };
if (prefix === 'reset') prefix = this.default.prefix; if (prefix === 'reset') ({ prefix } = this.default);
await message.guild._updateSettings({ [this.index]: prefix }); await message.guild._updateSettings({ [this.index]: prefix });
return { return {