forked from PluralFlux/PluralFlux
make memberCommand exit when error occurs with parseMemberCommand
This commit is contained in:
@@ -35,7 +35,7 @@ cmds.memberCommand = async function(message, args) {
|
|||||||
reply = await memberHelper.parseMemberCommand(message.author.id, authorFull, args, attachmentUrl, attachmentExpires)
|
reply = await memberHelper.parseMemberCommand(message.author.id, authorFull, args, attachmentUrl, attachmentExpires)
|
||||||
}
|
}
|
||||||
catch(e) {
|
catch(e) {
|
||||||
await message.reply(e.message);
|
return await message.reply(e.message);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (typeof reply === 'string') {
|
if (typeof reply === 'string') {
|
||||||
|
|||||||
Reference in New Issue
Block a user