Constructor and Description |
---|
AuditLogQuerySpec() |
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
asRequest() |
AuditLogQuerySpec |
setActionType(ActionType actionType)
Sets the query to return entries where the action type is the same as the one provided.
|
AuditLogQuerySpec |
setResponsibleUser(Snowflake userId)
Sets the query to only return entries where the user specified is responsible for the action.
|
public AuditLogQuerySpec setResponsibleUser(Snowflake userId)
userId
- The Snowflake
of the responsible user to filter by.public AuditLogQuerySpec setActionType(ActionType actionType)
actionType
- The ActionType
of the audit log entries to filter by.