Browse Source

mark old method as obsolete

pull/2580/head
Misha133 2 years ago
parent
commit
974a0a4415
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      src/Discord.Net.Rest/Entities/Channels/RestThreadChannel.cs

+ 1
- 0
src/Discord.Net.Rest/Entities/Channels/RestThreadChannel.cs View File

@@ -120,6 +120,7 @@ namespace Discord.Rest
/// A task representing the asynchronous get operation. The task returns a /// A task representing the asynchronous get operation. The task returns a
/// <see cref="IReadOnlyCollection{T}"/> of <see cref="RestThreadUser"/>'s. /// <see cref="IReadOnlyCollection{T}"/> of <see cref="RestThreadUser"/>'s.
/// </returns> /// </returns>
[Obsolete("Please use GetThreadUsersAsync instead of this. Will be removed in next major version.", false)]
public new async Task<IReadOnlyCollection<RestThreadUser>> GetUsersAsync(RequestOptions options = null) public new async Task<IReadOnlyCollection<RestThreadUser>> GetUsersAsync(RequestOptions options = null)
=> (await GetThreadUsersAsync(options: options).FlattenAsync()).ToImmutableArray(); => (await GetThreadUsersAsync(options: options).FlattenAsync()).ToImmutableArray();




Loading…
Cancel
Save