fixed bug for import not sending help text, added help text if you type a unrecognized command

This commit is contained in:
Aster Fialla
2026-02-19 19:31:18 -05:00
parent 1e2724bbfb
commit c4c6ad0fdd
3 changed files with 8 additions and 4 deletions

View File

@@ -45,8 +45,9 @@ cmds.set('help', {
cmds.set('import', {
description: enums.help.SHORT_DESC_IMPORT,
async execute(message) {
if (message.content.includes('--help')) {
async execute(message, client, args) {
console.log(args);
if (message.content.includes('--help') || (args[0] === '' && args.length === 1)) {
return await message.reply(enums.help.IMPORT);
}
const attachmentUrl = message.attachments.size > 0 ? message.attachments.first().url : null;