public class MessagePaginationAction extends PaginationAction<Message,MessagePaginationAction>
PaginationAction
that paginates the endpoints Route.Messages.GET_MESSAGE_HISTORY.
Must provide not-null MessageChannel to compile a valid
pagination route.
PaginationAction.PaginationIteratorRestAction.EmptyRestAction<T>, RestAction.FailedRestAction<T>DEFAULT_FAILURE, DEFAULT_SUCCESS, LOG| Constructor and Description |
|---|
MessagePaginationAction(MessageChannel channel) |
| Modifier and Type | Method and Description |
|---|---|
MessageChannel |
getChannel()
The targeted
MessageChannel |
ChannelType |
getType()
The
ChannelType of
the targeted MessageChannel. |
cache, cacheSize, getCached, getFirst, getLast, getLimit, getMaxLimit, getMinLimit, isCacheEnabled, isEmpty, iterator, limit, parallelStream, spliterator, streamcomplete, complete, completeAfter, getJDA, queue, queue, queue, queueAfter, queueAfter, queueAfter, queueAfter, queueAfter, queueAfter, submit, submit, submitAfter, submitAfterpublic MessagePaginationAction(MessageChannel channel)
public ChannelType getType()
ChannelType of
the targeted MessageChannel.ChannelTypepublic MessageChannel getChannel()
MessageChannel