public static class MessageHistory.MessageRetrieveAction extends RestAction<MessageHistory>
limit
the amount to retrieve for better performance!RestAction.EmptyRestAction<T>
DEFAULT_FAILURE, DEFAULT_SUCCESS, LOG
Modifier and Type | Method | Description |
---|---|---|
MessageHistory.MessageRetrieveAction |
limit(java.lang.Integer limit) |
Limit between 1-100 messages that should be retrieved.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
complete, complete, completeAfter, getJDA, isPassContext, queue, queue, queue, queueAfter, queueAfter, queueAfter, queueAfter, queueAfter, queueAfter, setCheck, setPassContext, submit, submit, submitAfter, submitAfter
public MessageHistory.MessageRetrieveAction limit(java.lang.Integer limit)
limit
- The limit to use, or null
to use default 50java.lang.IllegalArgumentException
- If the provided limit is not between 1-100