Compare commits
2 commits
287b89332e
...
009f365728
Author | SHA1 | Date | |
---|---|---|---|
009f365728 | |||
59f0f85df4 |
2 changed files with 9 additions and 2 deletions
|
@ -55,7 +55,6 @@ export default {
|
|||
}
|
||||
|
||||
if (command.alias) {
|
||||
console.log(command.alias.length);
|
||||
if (command.alias.length >= 1) {
|
||||
embed.addFields({ name: 'Aliases', value: `\`${command.alias.join('` `')}\``, inline: true });
|
||||
}
|
||||
|
@ -111,7 +110,6 @@ export default {
|
|||
admin: '⚡\u2000Admin',
|
||||
}[category];
|
||||
}
|
||||
console.log(title);
|
||||
embed.addFields({ name: title, value: `\`${object[category].join('` `')}\`` });
|
||||
}
|
||||
return interaction.reply({ embeds: [embed] });
|
||||
|
|
|
@ -380,6 +380,15 @@ export default {
|
|||
else if (type.includes('attachment')) {
|
||||
payload = message.attachments.first();
|
||||
}
|
||||
else if (type.includes('boolean')) {
|
||||
if (messageArgs[i].toLowerCase() === `--${arg.name.toLowerCase()}`) {
|
||||
payload = true;
|
||||
}
|
||||
else {
|
||||
payload = false;
|
||||
}
|
||||
}
|
||||
|
||||
args[arg.name] = payload;
|
||||
}
|
||||
await command.execute(message, args, client);
|
||||
|
|
Loading…
Reference in a new issue