forked from PluralFlux/PluralFlux
if parsing member command returns null, don't send anything.
This commit is contained in:
@@ -16,8 +16,11 @@ cmds.set('member', {
|
|||||||
if (typeof reply === 'string') {
|
if (typeof reply === 'string') {
|
||||||
return await message.reply(reply);
|
return await message.reply(reply);
|
||||||
}
|
}
|
||||||
|
else if (reply instanceof EmbedBuilder) {
|
||||||
await message.reply({embeds: [reply.toJSON()]})
|
await message.reply({embeds: [reply.toJSON()]})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
cmds.set('help', {
|
cmds.set('help', {
|
||||||
|
|||||||
Reference in New Issue
Block a user