if parsing member command returns null, don't send anything.

This commit is contained in:
Aster Fialla
2026-02-15 16:48:51 -05:00
parent 8f70960079
commit dafbafeec6

View File

@@ -16,7 +16,10 @@ cmds.set('member', {
if (typeof reply === 'string') {
return await message.reply(reply);
}
await message.reply({embeds: [reply.toJSON()]})
else if (reply instanceof EmbedBuilder) {
await message.reply({embeds: [reply.toJSON()]})
}
}
})