From 7fbd30c30e07707f3dd3ec8aba6d0756eb329fed Mon Sep 17 00:00:00 2001 From: Navy Date: Sat, 11 Jul 2020 23:33:44 +0300 Subject: [PATCH] misc fixes --- structure/client/components/settings/utility/Autorole.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/structure/client/components/settings/utility/Autorole.js b/structure/client/components/settings/utility/Autorole.js index 458dee2..2adff84 100644 --- a/structure/client/components/settings/utility/Autorole.js +++ b/structure/client/components/settings/utility/Autorole.js @@ -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 } ]; - } }