| @@ -25,8 +25,17 @@ namespace Discord.Rest | |||||
| private string DebuggerDisplay => $"{Name} ({Id}, Category)"; | private string DebuggerDisplay => $"{Name} ({Id}, Category)"; | ||||
| // IGuildChannel | // IGuildChannel | ||||
| /// <summary> | |||||
| /// Throws a NotSupportedException because Channel Categories cannot be the child of another Channel Category. | |||||
| /// </summary> | |||||
| /// <exception cref="NotSupportedException">A NotSupportedException is always thrown because Channel Categories do not support being nested.</exception> | |||||
| ulong? IGuildChannel.CategoryId | ulong? IGuildChannel.CategoryId | ||||
| => throw new NotSupportedException(); | => throw new NotSupportedException(); | ||||
| /// <summary> | |||||
| /// Throws a NotSupportedException because Channel Categories cannot be the child of another Channel Category. | |||||
| /// </summary> | |||||
| /// <exception cref="NotSupportedException">A NotSupportedException is always thrown because Channel Categories do not support being nested.</exception> | |||||
| Task<ICategoryChannel> IGuildChannel.GetCategoryAsync() | Task<ICategoryChannel> IGuildChannel.GetCategoryAsync() | ||||
| => throw new NotSupportedException(); | => throw new NotSupportedException(); | ||||
| IAsyncEnumerable<IReadOnlyCollection<IGuildUser>> IGuildChannel.GetUsersAsync(CacheMode mode, RequestOptions options) | IAsyncEnumerable<IReadOnlyCollection<IGuildUser>> IGuildChannel.GetUsersAsync(CacheMode mode, RequestOptions options) | ||||
| @@ -51,8 +51,17 @@ namespace Discord.WebSocket | |||||
| internal new SocketCategoryChannel Clone() => MemberwiseClone() as SocketCategoryChannel; | internal new SocketCategoryChannel Clone() => MemberwiseClone() as SocketCategoryChannel; | ||||
| // IGuildChannel | // IGuildChannel | ||||
| /// <summary> | |||||
| /// Throws a NotSupportedException because Channel Categories cannot be the child of another Channel Category. | |||||
| /// </summary> | |||||
| /// <exception cref="NotSupportedException">A NotSupportedException is always thrown because Channel Categories do not support being nested.</exception> | |||||
| ulong? IGuildChannel.CategoryId | ulong? IGuildChannel.CategoryId | ||||
| => throw new NotSupportedException(); | => throw new NotSupportedException(); | ||||
| /// <summary> | |||||
| /// Throws a NotSupportedException because Channel Categories cannot be the child of another Channel Category. | |||||
| /// </summary> | |||||
| /// <exception cref="NotSupportedException">A NotSupportedException is always thrown because Channel Categories do not support being nested.</exception> | |||||
| Task<ICategoryChannel> IGuildChannel.GetCategoryAsync() | Task<ICategoryChannel> IGuildChannel.GetCategoryAsync() | ||||
| => throw new NotSupportedException(); | => throw new NotSupportedException(); | ||||
| IAsyncEnumerable<IReadOnlyCollection<IGuildUser>> IGuildChannel.GetUsersAsync(CacheMode mode, RequestOptions options) | IAsyncEnumerable<IReadOnlyCollection<IGuildUser>> IGuildChannel.GetUsersAsync(CacheMode mode, RequestOptions options) | ||||