From d813dfaef62d30fdbef8a4ab34c6bcfb44dfc201 Mon Sep 17 00:00:00 2001 From: Navy Date: Mon, 25 May 2020 00:45:12 +0300 Subject: [PATCH] some bs --- structure/interfaces/Setting.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/structure/interfaces/Setting.js b/structure/interfaces/Setting.js index adeccad..e137ecf 100644 --- a/structure/interfaces/Setting.js +++ b/structure/interfaces/Setting.js @@ -28,7 +28,7 @@ class Setting extends Component { this.default = opts.default; this.arguments = opts.arguments || []; this.custom = Boolean(opts.custom); - this.display = opts.display || opts.name; + this.display = opts.display?.toLowerCase() || opts.name.toLowerCase(); this.memberPermissions = opts.memberPermissions || []; this.clientPermissions = opts.clientPermissions || []; @@ -53,11 +53,12 @@ class Setting extends Component { * @param {Array} args The incoming arguments with the first element being the method ex. ['add','ban','kick'] * @param {Array} valid An array of items to compare to, if an argument doesn't exist in this array it'll be skipped over * @param {Array} [existing=[]] Existing values in the array, valid elements will be appended to this + * @param {Function} resolver One of the resolver functions used to resolve the passed values into objects (should always be one of the mass resolver due to the nature of this method, might break otherwise). NOTE: REMEMBER TO BIND 'this' ARG! * @returns {Object} * @memberof Resolver */ - resolveMethod(args, valid, existing) { - return this.client.resolver.resolveMethod(args, valid, existing); + resolveMethod(args, valid, existing, resolver) { + return this.client.resolver.resolveMethod(args, valid, existing, resolver); } reason(executor) {