Package org.javacord.api.event.message
Interface MessageEditEvent
-
- All Superinterfaces:
CertainMessageEvent,ChannelEvent,Event,MessageEvent,TextChannelEvent
public interface MessageEditEvent extends CertainMessageEvent
A message delete event.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MessagegetMessage()Gets the updated message.java.util.Optional<Message>getOldMessage()Gets the old message with its old content.booleanisActualEdit()Whether this event represents a real change of the contents of this message.-
Methods inherited from interface org.javacord.api.event.message.CertainMessageEvent
canYouReadContent, getMessageAttachments, getMessageAuthor, getMessageContent, getMessageLink, getReadableMessageContent, isPrivateMessage, isServerMessage
-
Methods inherited from interface org.javacord.api.event.message.MessageEvent
addReactionsToMessage, addReactionsToMessage, addReactionToMessage, addReactionToMessage, deleteMessage, deleteMessage, editMessage, editMessage, editMessage, editMessage, editMessage, getMessageId, getServer, pinMessage, removeAllReactionsFromMessage, removeOwnReactionByEmojiFromMessage, removeOwnReactionByEmojiFromMessage, removeOwnReactionsByEmojiFromMessage, removeOwnReactionsByEmojiFromMessage, removeReactionByEmojiFromMessage, removeReactionByEmojiFromMessage, removeReactionByEmojiFromMessage, removeReactionByEmojiFromMessage, removeReactionsByEmojiFromMessage, removeReactionsByEmojiFromMessage, removeReactionsByEmojiFromMessage, removeReactionsByEmojiFromMessage, unpinMessage
-
Methods inherited from interface org.javacord.api.event.channel.TextChannelEvent
getChannel, getPrivateChannel, getServerTextChannel, getServerThreadChannel
-
-
-
-
Method Detail
-
getMessage
Message getMessage()
Gets the updated message.- Specified by:
getMessagein interfaceCertainMessageEvent- Returns:
- The updated message.
-
getOldMessage
java.util.Optional<Message> getOldMessage()
Gets the old message with its old content. It will only be present if the message was in the cache before this event.- Returns:
- The old message.
-
isActualEdit
boolean isActualEdit()
Whether this event represents a real change of the contents of this message.- Returns:
- true if the original author updated the contents of this message; false otherwise
-
-