Exemple #1
0
 /// <summary>
 /// Begins a member prune operation,
 /// kicking every member that has been offline for the specified number of days.
 /// <para>Requires <see cref="DiscordPermission.KickMembers"/>.</para>
 /// </summary>
 /// <param name="days">The number of days to prune (1 or more).</param>
 /// <exception cref="DiscordHttpApiException"></exception>
 public Task <int> BeginPrune(int days)
 {
     return(http.BeginGuildPrune(Id, days));
 }
Exemple #2
0
 /// <summary>
 /// Begins a member prune operation,
 /// kicking every member that has been offline for the specified number of days.
 /// <para>Requires <see cref="DiscordPermission.KickMembers"/>.</para>
 /// </summary>
 /// <param name="days">The number of days to prune (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>
 /// <param name="computePruneCount">
 /// For large guilds it's recommended to set this to false. When false, this method will always return 0.
 /// </param>
 /// <exception cref="DiscordHttpApiException"></exception>
 public Task <int> BeginPrune(int?days = null, IEnumerable <Snowflake> includeRoles = null, bool?computePruneCount = null)
 {
     return(http.BeginGuildPrune(Id, days, includeRoles, computePruneCount));
 }