From 81d353a16afaa38b44676664d306ade54f855dee Mon Sep 17 00:00:00 2001 From: mctaylors <95250141+mctaylors@users.noreply.github.com> Date: Sat, 12 Aug 2023 23:16:17 +0300 Subject: [PATCH] =?UTF-8?q?resolving=20issues=20attempt=20=E2=84=962?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Services/Update/ScheduledEventUpdateService.cs | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/Services/Update/ScheduledEventUpdateService.cs b/src/Services/Update/ScheduledEventUpdateService.cs index cddcb39..24b68da 100644 --- a/src/Services/Update/ScheduledEventUpdateService.cs +++ b/src/Services/Update/ScheduledEventUpdateService.cs @@ -19,18 +19,15 @@ public sealed class ScheduledEventUpdateService : BackgroundService private readonly IDiscordRestGuildScheduledEventAPI _eventApi; private readonly GuildDataService _guildData; private readonly ILogger _logger; - private readonly IDiscordRestUserAPI _userApi; private readonly UtilityService _utility; public ScheduledEventUpdateService(IDiscordRestChannelAPI channelApi, IDiscordRestGuildScheduledEventAPI eventApi, - GuildDataService guildData, ILogger logger, IDiscordRestUserAPI userApi, - UtilityService utility) + GuildDataService guildData, ILogger logger, UtilityService utility) { _channelApi = channelApi; _eventApi = eventApi; _guildData = guildData; _logger = logger; - _userApi = userApi; _utility = utility; } @@ -345,12 +342,6 @@ public sealed class ScheduledEventUpdateService : BackgroundService private async Task SendEarlyEventNotificationAsync( IGuildScheduledEvent scheduledEvent, GuildData data, CancellationToken ct) { - var currentUserResult = await _userApi.GetCurrentUserAsync(ct); - if (!currentUserResult.IsDefined(out _)) - { - return Result.FromError(currentUserResult); - } - var contentResult = await _utility.GetEventNotificationMentions( scheduledEvent, data.Settings, ct); if (!contentResult.IsDefined(out var content))