/// <summary> /// Gets a user from this guild. /// </summary> /// <remarks> /// This method retrieves a user found within this guild. /// </remarks> /// <param name="id">The snowflake identifier of the user.</param> /// <param name="options">The options to be used when sending the request.</param> /// <returns> /// A task that represents the asynchronous get operation. The task result contains the guild user /// associated with the specified <paramref name="id"/>; <c>null</c> if none is found. /// </returns> public Task <RestGuildUser> GetUserAsync(ulong id, RequestOptions options = null) => GuildHelper.GetUserAsync(this, Discord, id, options);
/// <summary> /// Gets the current user for this guild. /// </summary> /// <param name="options">The options to be used when sending the request.</param> /// <returns> /// A task that represents the asynchronous get operation. The task result contains the currently logged-in /// user within this guild. /// </returns> public Task <RestGuildUser> GetCurrentUserAsync(RequestOptions options = null) => GuildHelper.GetUserAsync(this, Discord, Discord.CurrentUser.Id, options);
public Task <RestGuildUser> GetOwnerAsync(RequestOptions options = null) => GuildHelper.GetUserAsync(this, Discord, OwnerId, options);