return error when it occurs

This commit is contained in:
Aster Fialla
2026-02-14 13:10:43 -05:00
committed by pieartsy
parent 851bae4ff8
commit 0d129f23e7
3 changed files with 6 additions and 6 deletions

View File

@@ -6,10 +6,11 @@ import {EmbedBuilder} from "@fluxerjs/core";
const cmds = new Map();
cmds.set('member', {
alias: 'm',
description: enums.help.SHORT_DESC_MEMBER,
async execute(message, client, args) {
const reply = await memberHelper.parseMemberCommand(message.author.id, args, message.attachments[0] ?? null);
const reply = await memberHelper.parseMemberCommand(message.author.id, args, message.attachments[0] ?? null).catch(async (e) => {
return await message.reply(e);
});
return await message.reply(reply);
}
})