diff --git a/src/Services/Update/MemberUpdateService.cs b/src/Services/Update/MemberUpdateService.cs index 3e87b79..3db307d 100644 --- a/src/Services/Update/MemberUpdateService.cs +++ b/src/Services/Update/MemberUpdateService.cs @@ -123,7 +123,7 @@ public sealed partial class MemberUpdateService : BackgroundService private async Task TryAutoUnbanAsync( Snowflake guildId, Snowflake id, MemberData data, CancellationToken ct) { - if (DateTimeOffset.UtcNow <= data.BannedUntil) + if (data.BannedUntil is null || DateTimeOffset.UtcNow <= data.BannedUntil) { return Result.FromSuccess(); } @@ -141,7 +141,7 @@ public sealed partial class MemberUpdateService : BackgroundService private async Task TryAutoUnmuteAsync( Snowflake guildId, Snowflake id, MemberData data, CancellationToken ct) { - if (DateTimeOffset.UtcNow <= data.MutedUntil) + if (data.MutedUntil is null || DateTimeOffset.UtcNow <= data.MutedUntil) { return Result.FromSuccess(); }