forked from Galactic/galactic-bot
premium property and update resolvemethod
This commit is contained in:
parent
5b9382b529
commit
2befa37f29
@ -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<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!
|
||||
* @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) {
|
||||
|
Loading…
Reference in New Issue
Block a user