@@ -436,23 +436,38 @@ public Task<IReadOnlyList<DiscordRole>> ModifyRolePositions(IEnumerable<Position
436436 /// Returns the number of members that would be kicked from a prune operation.
437437 /// <para>Requires <see cref="DiscordPermission.KickMembers"/>.</para>
438438 /// </summary>
439- /// <param name="days">The number of days to count prune for (1 or more).</param>
439+ /// <param name="days">The number of days to count prune for (1-30).</param>
440+ /// <param name="includeRoles">
441+ /// By default, prune will not remove users with roles. You can optionally include specific
442+ /// roles in your prune by providing the <paramref name="includeRoles"/> parameter. Any inactive
443+ /// user that has a subset of the provided role(s) will be counted in the prune and users with
444+ /// additional roles will not.
445+ /// </param>
440446 /// <exception cref="DiscordHttpApiException"></exception>
441- public Task < int > GetPruneCount ( int days )
447+ public Task < int > GetPruneCount ( int ? days = null , IEnumerable < Snowflake > includeRoles = null )
442448 {
443- return http . GetGuildPruneCount ( Id , days ) ;
449+ return http . GetGuildPruneCount ( Id , days , includeRoles ) ;
444450 }
445451
446452 /// <summary>
447453 /// Begins a member prune operation,
448454 /// kicking every member that has been offline for the specified number of days.
449455 /// <para>Requires <see cref="DiscordPermission.KickMembers"/>.</para>
450456 /// </summary>
451- /// <param name="days">The number of days to prune (1 or more).</param>
457+ /// <param name="days">The number of days to prune (1-30).</param>
458+ /// <param name="includeRoles">
459+ /// By default, prune will not remove users with roles. You can optionally include specific
460+ /// roles in your prune by providing the <paramref name="includeRoles"/> parameter. Any inactive
461+ /// user that has a subset of the provided role(s) will be counted in the prune and users with
462+ /// additional roles will not.
463+ /// </param>
464+ /// <param name="computePruneCount">
465+ /// For large guilds it's recommended to set this to false. When false, this method will always return 0.
466+ /// </param>
452467 /// <exception cref="DiscordHttpApiException"></exception>
453- public Task < int > BeginPrune ( int days )
468+ public Task < int > BeginPrune ( int ? days = null , IEnumerable < Snowflake > includeRoles = null , bool ? computePruneCount = null )
454469 {
455- return http . BeginGuildPrune ( Id , days ) ;
470+ return http . BeginGuildPrune ( Id , days , includeRoles , computePruneCount ) ;
456471 }
457472
458473 /// <summary>
0 commit comments