mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 15:07:42 +02:00
Fix
This commit is contained in:
@@ -52,7 +52,7 @@ module.exports = class Command {
|
||||
example(msg) {
|
||||
const args = this.args.map((arg, i) => {
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user