Constructor and Description |
---|
GuildPruneSpec() |
Modifier and Type | Method and Description |
---|---|
GuildPruneSpec |
addRole(Snowflake roleId)
Include a role in the prune request.
|
GuildPruneSpec |
addRoles(Collection<Snowflake> roleIds)
Include multiple roles in the prune request.
|
Multimap<String,Object> |
asRequest() |
String |
getReason()
Returns the current audit log reason set on the spec.
|
GuildPruneSpec |
setComputePruneCount(boolean enable)
Set whether the number of pruned members is returned when this actions completes.
|
GuildPruneSpec |
setDays(int days)
Set the number of days to prune.
|
GuildPruneSpec |
setReason(String reason)
Sets the reason to show in the audit logs when the spec is built.
|
public GuildPruneSpec setDays(int days)
days
- the number of dayspublic GuildPruneSpec addRole(Snowflake roleId)
roleId
- the role ID to include for prunepublic GuildPruneSpec addRoles(Collection<Snowflake> roleIds)
roleIds
- the role IDs to include for prunepublic GuildPruneSpec setComputePruneCount(boolean enable)
false
.enable
- whether the pruned total is returned, if false
, the prune action will eventually
complete with an empty Mono
.public GuildPruneSpec setReason(String reason)
AuditSpec
public String getReason()
AuditSpec