Class AuditLogPaginationActionImpl
java.lang.Object
net.dv8tion.jda.internal.requests.RestActionImpl<List<AuditLogEntry>>
net.dv8tion.jda.internal.requests.restaction.pagination.PaginationActionImpl<AuditLogEntry,AuditLogPaginationAction>
net.dv8tion.jda.internal.requests.restaction.pagination.AuditLogPaginationActionImpl
- All Implemented Interfaces:
Iterable<AuditLogEntry>
,RestAction<@Unmodifiable List<AuditLogEntry>>
,AuditLogPaginationAction
,PaginationAction<AuditLogEntry,
AuditLogPaginationAction>
public class AuditLogPaginationActionImpl
extends PaginationActionImpl<AuditLogEntry,AuditLogPaginationAction>
implements AuditLogPaginationAction
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.dv8tion.jda.api.requests.restaction.pagination.PaginationAction
PaginationAction.PaginationIterator<E>, PaginationAction.PaginationOrder
-
Field Summary
Fields inherited from class net.dv8tion.jda.internal.requests.RestActionImpl
LOG
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetGuild()
The current targetGuild
for this AuditLogPaginationAction.The supportedPaginationOrders
for this pagination action.type
(ActionType type) Filters retrieved entities by the specifiedActionType
user
(UserSnowflake user) Filters retrieved entities by the specifiedUserSnowflake
.Methods inherited from class net.dv8tion.jda.internal.requests.restaction.pagination.PaginationActionImpl
cache, cacheSize, deadline, forEachAsync, forEachRemaining, forEachRemainingAsync, getCached, getFirst, getLast, getLastKey, getLimit, getMaxLimit, getMinLimit, getNextChunk, getOrder, isCacheEnabled, isEmpty, iterator, limit, order, setCheck, skipTo, takeAsync, takeRemainingAsync, timeout
Methods inherited from class net.dv8tion.jda.internal.requests.RestActionImpl
complete, getCheck, getDefaultFailure, getDefaultSuccess, getDefaultTimeout, getJDA, handleResponse, isPassContext, priority, queue, setDefaultFailure, setDefaultSuccess, setDefaultTimeout, setErrorMapper, setPassContext, submit
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.dv8tion.jda.api.requests.restaction.pagination.PaginationAction
cache, cacheSize, deadline, forEachAsync, forEachAsync, forEachRemaining, forEachRemainingAsync, forEachRemainingAsync, getCached, getFirst, getLast, getLastKey, getLimit, getMaxLimit, getMinLimit, getOrder, isCacheEnabled, isEmpty, iterator, limit, order, parallelStream, reverse, setCheck, skipTo, spliterator, stream, takeAsync, takeRemainingAsync, takeUntilAsync, takeUntilAsync, takeWhileAsync, takeWhileAsync, timeout
Methods inherited from interface net.dv8tion.jda.api.requests.RestAction
addCheck, and, and, complete, complete, completeAfter, delay, delay, delay, delay, flatMap, flatMap, getCheck, getJDA, map, mapToResult, onErrorFlatMap, onErrorFlatMap, onErrorMap, onErrorMap, onSuccess, queue, queue, queue, queueAfter, queueAfter, queueAfter, queueAfter, queueAfter, queueAfter, submit, submit, submitAfter, submitAfter, zip
-
Constructor Details
-
AuditLogPaginationActionImpl
-
-
Method Details
-
type
Description copied from interface:AuditLogPaginationAction
Filters retrieved entities by the specifiedActionType
- Specified by:
type
in interfaceAuditLogPaginationAction
- Parameters:
type
-ActionType
used to filter, ornull
to remove type filtering- Returns:
- The current AuditLogPaginationAction for chaining convenience
-
user
Description copied from interface:AuditLogPaginationAction
Filters retrieved entities by the specifiedUserSnowflake
.
This specified the action issuer and not the target of an action. (Targets need not be users)- Specified by:
user
in interfaceAuditLogPaginationAction
- Parameters:
user
- TheUserSnowflake
used to filter ornull
to remove user filtering. This can be a member or user instance orUser.fromId(long)
.- Returns:
- The current AuditLogPaginationAction for chaining convenience
-
getGuild
Description copied from interface:AuditLogPaginationAction
The current targetGuild
for this AuditLogPaginationAction.- Specified by:
getGuild
in interfaceAuditLogPaginationAction
- Returns:
- The never-null target Guild
-
getSupportedOrders
Description copied from interface:PaginationAction
The supportedPaginationOrders
for this pagination action.
All enum values that are not returned will cause a throw forPaginationAction.order(PaginationOrder)
.Most pagination endpoints only support a single order, however some endpoints such as message pagination supports both.
- Specified by:
getSupportedOrders
in interfacePaginationAction<AuditLogEntry,
AuditLogPaginationAction> - Returns:
EnumSet
ofPaginationAction.PaginationOrder
(Modifying this set does not affect this class)
-