Esempio n. 1
0
 /// <summary>
 /// Returns the number of members that would be kicked from a prune operation.
 /// <para>Requires <see cref="DiscordPermission.KickMembers"/>.</para>
 /// </summary>
 /// <param name="days">The number of days to count prune for (1 or more).</param>
 /// <exception cref="DiscordHttpApiException"></exception>
 public Task <int> GetPruneCount(int days)
 {
     return(http.GetGuildPruneCount(Id, days));
 }
Esempio n. 2
0
 /// <summary>
 /// Returns the number of members that would be kicked from a prune operation.
 /// <para>Requires <see cref="DiscordPermission.KickMembers"/>.</para>
 /// </summary>
 /// <param name="days">The number of days to count prune for (1-30).</param>
 /// <param name="includeRoles">
 /// By default, prune will not remove users with roles. You can optionally include specific
 /// roles in your prune by providing the <paramref name="includeRoles"/> parameter. Any inactive
 /// user that has a subset of the provided role(s) will be counted in the prune and users with
 /// additional roles will not.
 /// </param>
 /// <exception cref="DiscordHttpApiException"></exception>
 public Task <int> GetPruneCount(int?days = null, IEnumerable <Snowflake> includeRoles = null)
 {
     return(http.GetGuildPruneCount(Id, days, includeRoles));
 }