From 4b8006a60874d25a0cdad4f8b46bf873be2d9e6d Mon Sep 17 00:00:00 2001 From: Smieszkokoleszko <63968615+Smieszkokoleszko@users.noreply.github.com> Date: Thu, 2 May 2024 10:28:06 +0200 Subject: [PATCH] Changed method names --- ArmaforcesMissionBot/Handlers/ReactionHandler.cs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/ArmaforcesMissionBot/Handlers/ReactionHandler.cs b/ArmaforcesMissionBot/Handlers/ReactionHandler.cs index b39528e..9585eaf 100644 --- a/ArmaforcesMissionBot/Handlers/ReactionHandler.cs +++ b/ArmaforcesMissionBot/Handlers/ReactionHandler.cs @@ -57,11 +57,11 @@ private async Task HandleReactionAdded(Cacheable message, I if (reaction.User.IsSpecified && !reaction.User.Value.IsBot && _config.RoleAssignChannel == channel.Id) { - await AddedReactionToRolesChannel(message, channel, reaction); + await AddedReactionInRolesChannel(message, channel, reaction); } else if (reaction.User.IsSpecified && !reaction.User.Value.IsBot && signups.Missions.Any(x => x.SignupChannel == channel.Id)) { - await AddedReactionToSignUpsChannel(message, channel, reaction, signups); + await AddedReactionInSignupsChannel(message, channel, reaction, signups); } else if (signups.Missions.Any(x => x.SignupChannel == channel.Id) && reaction.UserId != _client.CurrentUser.Id) { @@ -78,11 +78,11 @@ private async Task HandleReactionRemoved(Cacheable message, if (reaction.User.IsSpecified && !reaction.User.Value.IsBot && _config.RoleAssignChannel == channel.Id) { - await RemovedReactionToRolesChannel(message, channel, reaction); + await RemovedReactionInRolesChannel(message, channel, reaction); } else if (signups.Missions.Any(x => x.SignupChannel == channel.Id)) { - await RemovedReactionToSignUpsChannel(message, channel, reaction, signups); + await RemovedReactionInSignupsChannel(message, channel, reaction, signups); } } @@ -130,7 +130,7 @@ private async void CheckReactionTimes(object source, ElapsedEventArgs e) } } - private async Task AddedReactionToSignUpsChannel(Cacheable message, ISocketMessageChannel channel, SocketReaction reaction, SignupsData signups) + private async Task AddedReactionInSignupsChannel(Cacheable message, ISocketMessageChannel channel, SocketReaction reaction, SignupsData signups) { var reactionStringAnimatedVersion = reaction.Emote.ToString().Insert(1, "a"); @@ -205,7 +205,7 @@ private async Task AddedReactionToSignUpsChannel(Cacheable } } - private async Task AddedReactionToRolesChannel(Cacheable message, ISocketMessageChannel channel, SocketReaction reaction) + private async Task AddedReactionInRolesChannel(Cacheable message, ISocketMessageChannel channel, SocketReaction reaction) { var fullMessage = await channel.GetMessageAsync(message.Id) as IUserMessage; @@ -241,7 +241,7 @@ private async Task AddedReactionToRolesChannel(Cacheable me return; } - private async Task RemovedReactionToSignUpsChannel(Cacheable message, ISocketMessageChannel channel, SocketReaction reaction, SignupsData signups) + private async Task RemovedReactionInSignupsChannel(Cacheable message, ISocketMessageChannel channel, SocketReaction reaction, SignupsData signups) { var reactionStringAnimatedVersion = reaction.Emote.ToString().Insert(1, "a"); @@ -293,7 +293,7 @@ private async Task RemovedReactionToSignUpsChannel(Cacheable message, ISocketMessageChannel channel, SocketReaction reaction) + private async Task RemovedReactionInRolesChannel(Cacheable message, ISocketMessageChannel channel, SocketReaction reaction) { var fullMessage = await channel.GetMessageAsync(message.Id) as IUserMessage;