misc fixes

This commit is contained in:
Erik 2020-07-11 23:33:44 +03:00
parent 7ebca4bae2
commit 7fbd30c30e

View File

@ -30,7 +30,7 @@ class AutoroleSetting extends Setting {
async handle(message, params) {
const setting = message.guild._settings[this.index] || this.default[this.index];
const setting = message.guild._settings[this.index];
const { guild } = message;
const { resolver } = this.client;
const response = await resolver.resolveMethod(params, null, setting.roles, resolver.resolveRoles.bind(resolver), guild);
@ -105,7 +105,6 @@ class AutoroleSetting extends Setting {
inline: false
}
];
}
}