Ejemplo n.º 1
0
 /// <summary>
 ///     Gets a user in this channel.
 /// </summary>
 /// <param name="id">The snowflake identifier of the user.</param>
 /// <param name="options">The options to be used when sending the request.</param>
 /// <exception cref="InvalidOperationException">
 /// Resolving permissions requires the parent guild to be downloaded.
 /// </exception>
 /// <returns>
 ///     A task representing the asynchronous get operation. The task result contains a guild user object that
 ///     represents the user; <c>null</c> if none is found.
 /// </returns>
 public Task <RestGuildUser> GetUserAsync(ulong id, RequestOptions options = null)
 => ChannelHelper.GetUserAsync(this, Guild, Discord, id, options);