Browse Source

docs: update CategoryId remarks for detaching a channel

setting a categoryid to 0 will result in a bad request, null will actually detach
pull/1282/head
Chris Johnston 6 years ago
parent
commit
102aa0c05d
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Discord.Net.Core/Entities/Channels/NestedChannelProperties.cs

+ 1
- 1
src/Discord.Net.Core/Entities/Channels/NestedChannelProperties.cs View File

@@ -10,7 +10,7 @@ namespace Discord
/// </summary> /// </summary>
/// <remarks> /// <remarks>
/// Setting this value to a category's snowflake identifier will change or set this channel's parent to the /// Setting this value to a category's snowflake identifier will change or set this channel's parent to the
/// specified channel; setting this value to <c>0</c> will detach this channel from its parent if one
/// specified channel; setting this value to <c>null</c> will detach this channel from its parent if one
/// is set. /// is set.
/// </remarks> /// </remarks>
public Optional<ulong?> CategoryId { get; set; } public Optional<ulong?> CategoryId { get; set; }


Loading…
Cancel
Save