mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-09 01:04:16 +02:00
Add examples
This commit is contained in:
@@ -59,6 +59,7 @@ module.exports = class CommandDispatcher {
|
||||
error: stripIndents`
|
||||
The "${arg.label || arg.key}" argument is required.
|
||||
${arg.invalidText}
|
||||
Correct Usage Example: ${command.example(msg)}
|
||||
`
|
||||
};
|
||||
}
|
||||
@@ -75,6 +76,7 @@ module.exports = class CommandDispatcher {
|
||||
error: stripIndents`
|
||||
An invalid value was provided for one of the "${arg.label || arg.key}" arguments.
|
||||
${arg.invalidText}
|
||||
Correct Usage Example: ${command.example(msg)}
|
||||
`
|
||||
};
|
||||
}
|
||||
@@ -91,6 +93,7 @@ module.exports = class CommandDispatcher {
|
||||
error: stripIndents`
|
||||
The "${arg.label || arg.key}" argument is required.
|
||||
${arg.invalidText}
|
||||
Correct Usage Example: ${command.example(msg)}
|
||||
`
|
||||
};
|
||||
} else {
|
||||
@@ -107,6 +110,7 @@ module.exports = class CommandDispatcher {
|
||||
error: stripIndents`
|
||||
An invalid value was provided for the "${arg.label || arg.key}" argument.
|
||||
${arg.invalidText}
|
||||
Correct Usage Example: ${command.example(msg)}
|
||||
`
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user