mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix lint
This commit is contained in:
@@ -40,11 +40,11 @@ module.exports = class Command {
|
|||||||
}
|
}
|
||||||
|
|
||||||
usage(forcedArgs) {
|
usage(forcedArgs) {
|
||||||
const args = typeof forcedArgs !== 'undefined' ? forcedArgs : this.args
|
const args = typeof forcedArgs === 'undefined' ? this.args
|
||||||
.map(arg => {
|
.map(arg => {
|
||||||
const hasDefault = arg.default !== null;
|
const hasDefault = arg.default !== null;
|
||||||
return `${hasDefault ? '[' : '<'}${arg.label || arg.key}${hasDefault ? ']' : '>'}`;
|
return `${hasDefault ? '[' : '<'}${arg.label || arg.key}${hasDefault ? ']' : '>'}`;
|
||||||
}).join(' ');
|
}).join(' ') : forcedArgs;
|
||||||
return `\`${this.client.commandPrefix}${this.name} ${args}\` or \`@${this.client.user.tag} ${this.name} ${args}\``;
|
return `\`${this.client.commandPrefix}${this.name} ${args}\` or \`@${this.client.user.tag} ${this.name} ${args}\``;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user