updating commands to send embeds if it receives them

This commit is contained in:
Aster Fialla
2026-02-14 14:29:21 -05:00
committed by pieartsy
parent 3bec40e235
commit e634085627

View File

@@ -8,10 +8,11 @@ const cmds = new Map();
cmds.set('member', { cmds.set('member', {
description: enums.help.SHORT_DESC_MEMBER, description: enums.help.SHORT_DESC_MEMBER,
async execute(message, client, args) { async execute(message, client, args) {
const reply = await memberHelper.parseMemberCommand(message.author.id, args, message.attachments[0] ?? null).catch(async (e) => { const reply = await memberHelper.parseMemberCommand(message.author, args, message.attachments[0] = null);
return await message.reply(e); if (typeof reply === 'string') {
}); await message.reply(reply);
return await message.reply(reply); }
await message.reply({embeds: [embed.toJSON()]})
} }
}) })