/// <summary> /// Gets a collection of users within this thread. /// </summary> /// <param name="options">The options to be used when sending the request.</param> /// <returns> /// A task representing the asynchronous get operation. The task returns a /// <see cref="IReadOnlyCollection{T}"/> of <see cref="RestThreadUser"/>'s. /// </returns> public new async Task <IReadOnlyCollection <RestThreadUser> > GetUsersAsync(RequestOptions options = null) => (await ThreadHelper.GetUsersAsync(this, Discord, options).ConfigureAwait(false)).ToImmutableArray();
/// <inheritdoc/> public override async Task ModifyAsync(Action <TextChannelProperties> func, RequestOptions options = null) { var model = await ThreadHelper.ModifyAsync(this, Discord, func, options); Update(model); }
/// <summary> /// Gets a user within this thread. /// </summary> /// <param name="userId">The id of the user to fetch.</param> /// <param name="options">The options to be used when sending the request.</param> /// <returns> /// A task representing the asynchronous get operation. The task returns a /// <see cref="RestThreadUser"/> if found, otherwise <see langword="null"/>. /// </returns> public new Task <RestThreadUser> GetUserAsync(ulong userId, RequestOptions options = null) => ThreadHelper.GetUserAsync(userId, this, Discord, options);