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:
- Get Guild Prune Count
-
-
Constructor Summary
Constructors Constructor Description LegacyGuildPruneCountSpec()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LegacyGuildPruneCountSpec
addRole(Snowflake roleId)
Include a role in the prune count request.LegacyGuildPruneCountSpec
addRoles(Collection<Snowflake> roleIds)
Include multiple roles in the prune count request.Multimap<String,Object>
asRequest()
LegacyGuildPruneCountSpec
setDays(int days)
Set the number of days to count prune for.
-
-
-
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
-
-