Files
xiao/framework/ArgumentType.js
T
Dragon Fire 986d5d90fb Add examples
2024-05-16 17:16:00 -04:00

24 lines
306 B
JavaScript

module.exports = class ArgumentType {
constructor(client, id) {
Object.defineProperty(this, 'client', { value: client });
this.id = id.toLowerCase();
}
validate(val) {
return Boolean(val);
}
parse(val) {
return val;
}
isEmpty(val) {
return !val;
}
example() {
return 'moo';
}
};