rename emotes to validvoteemotes
This commit is contained in:
		@@ -1,7 +1,7 @@
 | 
			
		||||
 | 
			
		||||
import { Message, MessageReaction, User } from "discord.js";
 | 
			
		||||
import { logger, newRequestId, noGuildId } from "../logger";
 | 
			
		||||
import { Emoji, Emotes, NONE_OF_THAT } from "../constants";
 | 
			
		||||
import { Emoji, ValidVoteEmotes, NONE_OF_THAT } from "../constants";
 | 
			
		||||
import { client } from "../..";
 | 
			
		||||
import { isInitialAnnouncement, isVoteMessage } from "../helper/messageIdentifiers";
 | 
			
		||||
 | 
			
		||||
@@ -26,7 +26,7 @@ export async function execute(messageReaction: MessageReaction, user: User) {
 | 
			
		||||
 | 
			
		||||
	logger.info(`emoji: ${messageReaction.emoji.toString()}`)
 | 
			
		||||
 | 
			
		||||
	if (!Object.values(Emotes).includes(messageReaction.emoji.toString()) && messageReaction.emoji.toString() !== NONE_OF_THAT) {
 | 
			
		||||
	if (!Object.values(ValidVoteEmotes).includes(messageReaction.emoji.toString()) && messageReaction.emoji.toString() !== NONE_OF_THAT) {
 | 
			
		||||
		logger.info(`${messageReaction.emoji.toString()} currently not handled`)
 | 
			
		||||
		return
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user