Package discord4j.core.spec.legacy
Class LegacyGuildPruneCountSpec
java.lang.Object
discord4j.core.spec.legacy.LegacyGuildPruneCountSpec
- All Implemented Interfaces:
LegacySpec<Multimap<String,
Object>>
public class LegacyGuildPruneCountSpec
extends Object
implements LegacySpec<Multimap<String,Object>>
LegacySpec used to retrieve the number of members that would be removed in a prune operation.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionInclude a role in the prune count request.addRoles
(Collection<Snowflake> roleIds) Include multiple roles in the prune count request.setDays
(int days) Set the number of days to count prune for.
-
Constructor Details
-
LegacyGuildPruneCountSpec
public LegacyGuildPruneCountSpec()
-
-
Method Details
-
setDays
Set the number of days to count prune for.- Parameters:
days
- the number of days- Returns:
- this spec
-
addRole
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
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
-
asRequest
- Specified by:
asRequest
in interfaceLegacySpec<Multimap<String,
Object>>
-