mirror of
https://github.com/TeamOctolings/Octobot.git
synced 2025-04-20 00:43:36 +03:00
Fall back to 'null' if CommunicationDisabledUntil has no value
Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
This commit is contained in:
parent
13721ddfde
commit
2b573ecb1a
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue