Constructor and Description |
---|
BanQuerySpec() |
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
asRequest() |
String |
getReason()
Returns the current audit log reason set on the spec.
|
BanQuerySpec |
setDeleteMessageDays(int days)
Sets the number of days to delete messages for (0-7).
|
BanQuerySpec |
setReason(String reason)
Sets the reason to show in the audit logs when the spec is built.
|
public BanQuerySpec setDeleteMessageDays(int days)
days
- A number from 0 to 7 indicating how many days of messages should be deleted when a user is banned.public BanQuerySpec setReason(@Nullable String reason)
AuditSpec
@Nullable public String getReason()
AuditSpec