public class MessageHistory
extends java.lang.Object
Constructor and Description |
---|
MessageHistory(JDA api,
PrivateChannel channel) |
MessageHistory(JDA api,
TextChannel channel) |
Modifier and Type | Method and Description |
---|---|
java.util.List<Message> |
getRecent()
Returns all already by the retrieve methods pulled messages of this history
|
java.util.List<Message> |
retrieve()
Queues the next set of 100 Messages and returns them
If the end of the chat was already reached, this function returns null
|
java.util.List<Message> |
retrieve(int amount)
Queues the next set of Messages and returns them
If the end of the chat was already reached, this function returns null
|
java.util.List<Message> |
retrieveAll()
Gets all available Messages.
|
public MessageHistory(JDA api, TextChannel channel)
public MessageHistory(JDA api, PrivateChannel channel)
public java.util.List<Message> retrieveAll()
public java.util.List<Message> getRecent()
public java.util.List<Message> retrieve()
public java.util.List<Message> retrieve(int amount)
amount
- the amount to Messages to queue