This commit is contained in:
Erik 2020-05-25 00:45:12 +03:00
parent 8499576ddf
commit d813dfaef6

View File

@ -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<String>} args The incoming arguments with the first element being the method ex. ['add','ban','kick']
* @param {Array<String>} valid An array of items to compare to, if an argument doesn't exist in this array it'll be skipped over
* @param {Array<String>} [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) {