mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix
This commit is contained in:
@@ -51,7 +51,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 (arg.type === 'string' && i !== this.args.length - 1 && example.includes(' ')) {
|
if (arg.type.id === 'string' && i !== this.args.length - 1 && example.includes(' ')) {
|
||||||
return `"${example}"`;
|
return `"${example}"`;
|
||||||
}
|
}
|
||||||
return example;
|
return example;
|
||||||
|
|||||||
Reference in New Issue
Block a user