Browse Source

Fixed rest interaction field with not being IsSpecified

pull/2168/head
FeroxFoxxo 3 years ago
parent
commit
b2036fa712
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Discord.Net.Rest/Entities/Integrations/RestIntegration.cs

+ 1
- 1
src/Discord.Net.Rest/Entities/Integrations/RestIntegration.cs View File

@@ -64,7 +64,7 @@ namespace Discord.Rest
IsEnabled = model.Enabled; IsEnabled = model.Enabled;


IsSyncing = model.Syncing.IsSpecified ? model.Syncing.Value : null; IsSyncing = model.Syncing.IsSpecified ? model.Syncing.Value : null;
RoleId = model.RoleId.HasValue ? model.RoleId.Value : null;
RoleId = model.RoleId.IsSpecified ? model.RoleId.Value : null;
HasEnabledEmoticons = model.EnableEmoticons.IsSpecified ? model.EnableEmoticons.Value : null; HasEnabledEmoticons = model.EnableEmoticons.IsSpecified ? model.EnableEmoticons.Value : null;
ExpireBehavior = model.ExpireBehavior.IsSpecified ? model.ExpireBehavior.Value : null; ExpireBehavior = model.ExpireBehavior.IsSpecified ? model.ExpireBehavior.Value : null;
ExpireGracePeriod = model.ExpireGracePeriod.IsSpecified ? model.ExpireGracePeriod.Value : null; ExpireGracePeriod = model.ExpireGracePeriod.IsSpecified ? model.ExpireGracePeriod.Value : null;


Loading…
Cancel
Save