Class LegacyGuildPruneCountSpec

    • Constructor Detail

      • LegacyGuildPruneCountSpec

        public LegacyGuildPruneCountSpec()
    • Method Detail

      • setDays

        public LegacyGuildPruneCountSpec setDays​(int days)
        Set the number of days to count prune for.
        Parameters:
        days - the number of days
        Returns:
        this spec
      • addRole

        public LegacyGuildPruneCountSpec addRole​(Snowflake roleId)
        Include a role in the prune count request. By default, prune will not remove users with roles, therefore this method can be used to include such users.
        Parameters:
        roleId - the role ID to include
        Returns:
        this spec
      • addRoles

        public LegacyGuildPruneCountSpec addRoles​(Collection<Snowflake> roleIds)
        Include multiple roles in the prune count request. By default, prune will not remove users with roles, therefore this method can be used to include such users.
        Parameters:
        roleIds - the role IDs to include
        Returns:
        this spec