Compare commits

...

2 commits

Author SHA1 Message Date
009f365728 Make booleans be flags 2022-09-02 09:18:52 +02:00
59f0f85df4 Removed some useless console.log 2022-09-02 09:18:39 +02:00
2 changed files with 9 additions and 2 deletions

View file

@ -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] });

View file

@ -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);