big refactoring of none_of_that handler
extracting, better typing, reduction of complexity
This commit is contained in:
		@@ -34,7 +34,7 @@ export async function execute(messageReaction: MessageReaction, user: User) {
 | 
			
		||||
	if (isVoteMessage(reactedUponMessage)) {
 | 
			
		||||
		if (messageReaction.emoji.toString() === NONE_OF_THAT) {
 | 
			
		||||
			logger.info(`Reaction is NONE_OF_THAT on a vote message. Handling`, { requestId, guildId })
 | 
			
		||||
			return client.voteController.handleNoneOfThatVote(messageReaction, user, reactedUponMessage, requestId, guildId)
 | 
			
		||||
			return client.voteController.handleNoneOfThatVote(messageReaction, reactedUponMessage, requestId, guildId)
 | 
			
		||||
		}
 | 
			
		||||
		if (messageReaction.emoji.toString() === Emoji.one) {
 | 
			
		||||
			// do something
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user