diff --git a/src/Services/GuildUpdateService.cs b/src/Services/GuildUpdateService.cs index 02ba3aa..22ef0d2 100644 --- a/src/Services/GuildUpdateService.cs +++ b/src/Services/GuildUpdateService.cs @@ -144,9 +144,6 @@ public partial class GuildUpdateService : BackgroundService { await TickScheduledEventsAsync(guildId, data, eventsResult.Entity, ct); } - [GeneratedRegex("[^A-zА-я0-9]")] - private static partial Regex IllegalCharsRegex(); - private async Task TickScheduledEventsAsync( Snowflake guildId, GuildData data, IEnumerable events, CancellationToken ct) { foreach (var scheduledEvent in events) { @@ -262,6 +259,9 @@ public partial class GuildUpdateService : BackgroundService { return Task.CompletedTask; } + [GeneratedRegex("[^A-zА-я0-9]")] + private static partial Regex IllegalCharsRegex(); + private async Task TickReminderAsync(Reminder reminder, IUser user, MemberData memberData, CancellationToken ct) { if (DateTimeOffset.UtcNow < reminder.At) return;