Added new parameters to prune methods.
Created by: Neuheit
Summary
Implements the new parameters for pruning as documented here.
Details
Discord recently added the ability for members to be pruned, even when in roles. They also added an option to determine whether the prune count should be returned when pruning, which saves time when pruning larger guilds. These changes are now reflected in the library, where the user can pass this option and/or a collection of roles to check to prune.
Changes proposed
- Added the
include_roles
parameter to bothGetPruneCountAsync()
andPruneAsync()
- Added the
compute_prune_count
parameter toPruneAsync()
, and changed the return type of this method to a nullable integer. - Changed these methods in both the guild and rest client.