made it easier to make a member

This commit is contained in:
Aster Fialla
2026-02-19 21:36:19 -05:00
parent d640322392
commit b64ba6e787
2 changed files with 10 additions and 3 deletions

View File

@@ -19,6 +19,10 @@ cmds.set('member', {
else if (reply instanceof EmbedBuilder) {
await message.reply({embeds: [reply.toJSON()]})
}
else if (typeof reply === 'object') {
const errorsText = reply.errors.length > 0 ? reply.errors.join('\n- ') : null;
return await message.reply({content: `${reply.success} ${errorsText ? "\nThese errors occurred:\n" + errorsText : ""}`, embeds: [reply.embed.toJSON()]})
}
}
})