mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-18 13:56:25 +02:00
Fix
This commit is contained in:
@@ -52,7 +52,7 @@ module.exports = class Command {
|
|||||||
example(msg) {
|
example(msg) {
|
||||||
const args = this.args.map((arg, i) => {
|
const args = this.args.map((arg, i) => {
|
||||||
const example = arg.example(msg, arg);
|
const example = arg.example(msg, arg);
|
||||||
if (i !== this.args.length - 1 && example.includes(' ')) {
|
if (arg.type === 'string' && i !== this.args.length - 1 && example.includes(' ')) {
|
||||||
return `"${example}"`;
|
return `"${example}"`;
|
||||||
}
|
}
|
||||||
return example;
|
return example;
|
||||||
|
|||||||
Reference in New Issue
Block a user