diff --git a/ETHDINFKBot/Handlers/ReactionHandler.cs b/ETHDINFKBot/Handlers/ReactionHandler.cs index 944de64..483ddf5 100644 --- a/ETHDINFKBot/Handlers/ReactionHandler.cs +++ b/ETHDINFKBot/Handlers/ReactionHandler.cs @@ -77,9 +77,15 @@ public async void Run() private async void PeopleUpvotingTheirOwnMessages(Emote reactionEmote) { + List upvoteChannels = new List() + { + DiscordChannels["memes"], + DiscordChannels["ethmemes"] + }; + try { - if (SocketGuildMessageUser.Id == SocketGuildReactionUser.Id && reactionEmote.Id == DiscordEmotes["this"]) + if (upvoteChannels.Contains(SocketGuildChannel.Id) && SocketGuildMessageUser.Id == SocketGuildReactionUser.Id && reactionEmote.Id == DiscordEmotes["this"]) { // delete the the message await Message.DeleteAsync();