Class ReactionPaginationActionImpl
java.lang.Object
net.dv8tion.jda.internal.requests.RestActionImpl<List<User>>
net.dv8tion.jda.internal.requests.restaction.pagination.PaginationActionImpl<User,ReactionPaginationAction>
net.dv8tion.jda.internal.requests.restaction.pagination.ReactionPaginationActionImpl
- All Implemented Interfaces:
Iterable<User>
,RestAction<@Unmodifiable List<User>>
,PaginationAction<User,
,ReactionPaginationAction> ReactionPaginationAction
public class ReactionPaginationActionImpl
extends PaginationActionImpl<User,ReactionPaginationAction>
implements ReactionPaginationAction
-
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
ConstructorsConstructorDescriptionReactionPaginationActionImpl
(MessageChannel channel, String messageId, String code, MessageReaction.ReactionType type) ReactionPaginationActionImpl
(MessageReaction reaction) Creates a new PaginationAction instanceReactionPaginationActionImpl
(MessageReaction reaction, MessageReaction.ReactionType type) Creates a new PaginationAction instanceReactionPaginationActionImpl
(Message message, String code, MessageReaction.ReactionType type) -
Method Summary
Modifier and TypeMethodDescriptionThe current targetMessageReaction
The supportedPaginationOrders
for this pagination action.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
-
ReactionPaginationActionImpl
Creates a new PaginationAction instance- Parameters:
reaction
- The targetMessageReaction
-
ReactionPaginationActionImpl
Creates a new PaginationAction instance- Parameters:
reaction
- The targetMessageReaction
type
- Type ofMessageReaction.ReactionType
to retrieve users for
-
ReactionPaginationActionImpl
public ReactionPaginationActionImpl(Message message, String code, MessageReaction.ReactionType type) -
ReactionPaginationActionImpl
public ReactionPaginationActionImpl(MessageChannel channel, String messageId, String code, MessageReaction.ReactionType type)
-
-
Method Details
-
getReaction
Description copied from interface:ReactionPaginationAction
The current targetMessageReaction
- Specified by:
getReaction
in interfaceReactionPaginationAction
- Returns:
- The current MessageReaction
-
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<User,
ReactionPaginationAction> - Returns:
EnumSet
ofPaginationAction.PaginationOrder
(Modifying this set does not affect this class)
-