Files
xiao/framework/ArgumentType.js
T
Dragon Fire 5fa50bfc2c Fix
2021-06-05 12:48:51 -04:00

20 lines
273 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;
}
};