async function pruneMembers(guildId, options) {
  if (options.days && options.days < 1) throw new Error(Errors.PRUNE_MIN_DAYS);
  if (options.days && options.days > 30) throw new Error(Errors.PRUNE_MAX_DAYS);
  await requireBotGuildPermissions(guildId, [
    "KICK_MEMBERS",
  ]);
  const result = await rest.runMethod(
    "post",
    endpoints.GUILD_PRUNE(guildId),
    snakelize(options),
  );
  return result.pruned;
}
/**
 * Begin a prune operation. Requires the KICK_MEMBERS permission. Returns an object with one 'pruned' key indicating the number of members that were removed in the prune operation. For large guilds it's recommended to set the computePruneCount option to false, forcing 'pruned' to null. Fires multiple Guild Member Remove Gateway events.
 *
 * By default, prune will not remove users with roles. You can optionally include specific roles in your prune by providing the roles (resolved to include_roles internally) parameter. Any inactive user that has a subset of the provided role(s) will be included in the prune and users with additional roles will not.
 */
Begin a prune operation. Requires the KICK_MEMBERS permission. Returns an object with one 'pruned' key indicating the number of members that were removed in the prune operation. For large guilds it's recommended to set the computePruneCount option to false, forcing 'pruned' to null. Fires multiple Guild Member Remove Gateway events.
By default, prune will not remove users with roles. You can optionally include specific roles in your prune by providing the roles (resolved to include_roles internally) parameter. Any inactive user that has a subset of the provided role(s) will be included in the prune and users with additional roles will not.
Begin a prune operation . Requires the KICK_MEMBERS permission . Returns an object with one ' pruned ' key indicating the number of members that were removed in the prune operation . For large guilds it ' s recommended to set the computePruneCount option to false forcing ' pruned ' to null . Fires multiple Guild Member Remove Gateway events . By default prune will not remove users with roles . You can optionally include specific roles in your prune by providing the roles ( resolved to include_roles internally ) parameter . Any inactive user that has a subset of the provided role ( s ) will be included in the prune and users with additional roles will not .
async function pruneMembers(guildId, options) {
  if (options.days && options.days < 1) throw new Error(Errors.PRUNE_MIN_DAYS);
  if (options.days && options.days > 30) throw new Error(Errors.PRUNE_MAX_DAYS);
  await requireBotGuildPermissions(guildId, [
    "KICK_MEMBERS",
  ]);
  const result = await rest.runMethod(
    "post",
    endpoints.GUILD_PRUNE(guildId),
    snakelize(options),
  );
  return result.pruned;
}
async function pruneMembers ( guildId , options ) { if ( options . days && options . days < 1 ) throw new Error ( Errors . PRUNE_MIN_DAYS ) ; if ( options . days && options . days > 30 ) throw new Error ( Errors . PRUNE_MAX_DAYS ) ; await requireBotGuildPermissions ( guildId , [ "KICK_MEMBERS" , ] ) ; const result = await rest . runMethod ( "post" , endpoints . GUILD_PRUNE ( guildId ) , snakelize ( options ) , ) ; return result . pruned ; }
Begin a prune operation.
Begin a prune operation .