mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
20 lines
273 B
JavaScript
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;
|
|
}
|
|
};
|