public class MessageUpdateEvent extends GenericMessageEvent
MessageChannel.
Can be used to detect a Message is edited in either a private or guild channel. Providing a MessageChannel and Message.
This also includes whether a message is being pinned.
JDA does not have a cache for messages and is not able to provide previous information due to limitations by the Discord API!
| Constructor | Description |
|---|---|
MessageUpdateEvent(JDA api,
long responseNumber,
Message message) |
| Modifier and Type | Method | Description |
|---|---|---|
User |
getAuthor() |
The author of the Message.
|
Member |
getMember() |
Member instance for the author of this message or
null if this
was not in a Guild. |
Message |
getMessage() |
The
Message that was updated
Note: Messages in JDA are not updated, they are immutable and will not change their state. |
getJDA, getResponseNumbergetChannel, getChannelType, getGroup, getGuild, getMessageId, getMessageIdLong, getPrivateChannel, getTextChannel, isFromTypepublic Message getMessage()
Message that was updated
public User getAuthor()
Userpublic Member getMember()
null if this
was not in a Guild.