Exemplo n.º 1
0
 /// <summary>
 ///     Gets a ban object for a banned user.
 /// </summary>
 /// <param name="userId">The snowflake identifier for the banned 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 a ban object, which
 ///     contains the user information and the reason for the ban; <c>null</c> if the ban entry cannot be found.
 /// </returns>
 public Task <RestBan> GetBanAsync(ulong userId, RequestOptions options = null)
 => GuildHelper.GetBanAsync(this, Discord, userId, options);