mirror of
https://github.com/TeamOctolings/Octobot.git
synced 2025-04-19 16:33:36 +03:00
move regex
This commit is contained in:
parent
afdad004ad
commit
62545f8c08
1 changed files with 3 additions and 3 deletions
|
@ -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<IGuildScheduledEvent> 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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue