forked from PluralFlux/PluralFlux
added default case to memberCommandHandler to throw error if command is not recognized
This commit is contained in:
@@ -186,6 +186,8 @@ mh.memberCommandHandler = async function(authorId, command, memberName, values,
|
|||||||
return await mh.updateProxy(authorId, memberName, values[0]);
|
return await mh.updateProxy(authorId, memberName, values[0]);
|
||||||
case 'propic':
|
case 'propic':
|
||||||
return await mh.updatePropic(authorId, memberName, values[0], attachmentUrl, attachmentExpiration);
|
return await mh.updatePropic(authorId, memberName, values[0], attachmentUrl, attachmentExpiration);
|
||||||
|
default:
|
||||||
|
throw new Error(enums.err.COMMAND_NOT_RECOGNIZED);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user