forked from Galactic/galactic-bot
cleanup
This commit is contained in:
parent
eae7b07a0b
commit
4c9bd8d917
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user