コード例 #1
0
 /// <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);
コード例 #2
0
 /// <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);
コード例 #3
0
ファイル: RestGuild.cs プロジェクト: patrykr5/Discord.Net
 public Task <RestGuildUser> GetOwnerAsync(RequestOptions options = null)
 => GuildHelper.GetUserAsync(this, Discord, OwnerId, options);