From 2befa37f29a54a6efc6d70803dbf3f2753974893 Mon Sep 17 00:00:00 2001 From: Navy Date: Sat, 11 Jul 2020 23:32:43 +0300 Subject: [PATCH] premium property and update resolvemethod --- structure/interfaces/Setting.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/structure/interfaces/Setting.js b/structure/interfaces/Setting.js index f300cab..1467699 100644 --- a/structure/interfaces/Setting.js +++ b/structure/interfaces/Setting.js @@ -16,6 +16,7 @@ class Setting extends Component { this.name = opts.name; this.module = opts.module; this.restricted = Boolean(opts.restricted); + this.premium = opts.premium || 0; this.description = opts.description || `S_${opts.name.toUpperCase()}_DESCRIPTION`; this.examples = opts.examples || []; @@ -53,12 +54,14 @@ 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! + * @param {Function} resolver One of the resolver functions used to resolve the passed values into objects (should always be one of the mass resolvers due to the nature of this method, might break otherwise) NOTE: REMEMBER TO BIND 'this' ARG! + * @param {Guild} guild The guild for the resolver to use when resolving + * @param {Boolean} caseSensitive Whether or not the arguments are case sensitive * @returns {Object} * @memberof Resolver */ - resolveMethod(args, valid, existing, resolver) { - return this.client.resolver.resolveMethod(args, valid, existing, resolver); + resolveMethod(args, valid, existing, resolver, guild, caseSensitive) { + return this.client.resolver.resolveMethod(args, valid, existing, resolver, guild, caseSensitive); } reason(executor) {