diff --git a/src/Services/Update/ScheduledEventUpdateService.cs b/src/Services/Update/ScheduledEventUpdateService.cs index f9aee51..97f9329 100644 --- a/src/Services/Update/ScheduledEventUpdateService.cs +++ b/src/Services/Update/ScheduledEventUpdateService.cs @@ -317,6 +317,12 @@ public sealed class ScheduledEventUpdateService : BackgroundService private async Task SendScheduledEventCompletedMessage(ScheduledEventData eventData, GuildData data, CancellationToken ct) { + if (GuildSettings.EventNotificationChannel.Get(data.Settings).Empty()) + { + data.ScheduledEvents.Remove(eventData.Id); + return Result.FromSuccess(); + } + var completedEmbed = new EmbedBuilder().WithTitle(string.Format(Messages.EventCompleted, eventData.Name)) .WithDescription( string.Format( @@ -349,6 +355,7 @@ public sealed class ScheduledEventUpdateService : BackgroundService { if (GuildSettings.EventNotificationChannel.Get(data.Settings).Empty()) { + data.ScheduledEvents.Remove(eventData.Id); return Result.FromSuccess(); }