Browse Source

set category id on model update

pull/2469/head
Misha133 2 years ago
parent
commit
a7292967a5
2 changed files with 4 additions and 0 deletions
  1. +2
    -0
      src/Discord.Net.Rest/Entities/Channels/RestForumChannel.cs
  2. +2
    -0
      src/Discord.Net.WebSocket/Entities/Channels/SocketForumChannel.cs

+ 2
- 0
src/Discord.Net.Rest/Entities/Channels/RestForumChannel.cs View File

@@ -85,6 +85,8 @@ namespace Discord.Rest
else else
DefaultReactionEmoji = null; DefaultReactionEmoji = null;
} }

CategoryId = model.CategoryId.GetValueOrDefault();
} }


/// <inheritdoc/> /// <inheritdoc/>


+ 2
- 0
src/Discord.Net.WebSocket/Entities/Channels/SocketForumChannel.cs View File

@@ -91,6 +91,8 @@ namespace Discord.WebSocket
else else
DefaultReactionEmoji = null; DefaultReactionEmoji = null;
} }

CategoryId = model.CategoryId.GetValueOrDefault();
} }


/// <inheritdoc /> /// <inheritdoc />


Loading…
Cancel
Save