From 2b573ecb1aa9795a389c5bf27022142f125da04e Mon Sep 17 00:00:00 2001 From: Octol1ttle Date: Thu, 28 Sep 2023 22:54:46 +0500 Subject: [PATCH] Fall back to 'null' if CommunicationDisabledUntil has no value Signed-off-by: Octol1ttle --- src/Commands/ToolsCommandGroup.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Commands/ToolsCommandGroup.cs b/src/Commands/ToolsCommandGroup.cs index d7d6785..57fe2aa 100644 --- a/src/Commands/ToolsCommandGroup.cs +++ b/src/Commands/ToolsCommandGroup.cs @@ -100,7 +100,7 @@ public class ToolsCommandGroup : CommandGroup DateTimeOffset? communicationDisabledUntil = null; if (guildMemberResult.IsDefined(out var guildMember)) { - communicationDisabledUntil = guildMember.CommunicationDisabledUntil.Value; + communicationDisabledUntil = guildMember.CommunicationDisabledUntil.OrDefault(null); AppendGuildInformation(guildMember, builder); }