Package org.javacord.api.event.message
Interface MessageEditEvent
-
- All Superinterfaces:
ChannelEvent
,Event
,MessageEvent
,OptionalMessageEvent
,RequestableMessageEvent
,TextChannelEvent
public interface MessageEditEvent extends RequestableMessageEvent
A message delete event.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getNewContent()
Gets the new content of the message.List<Embed>
getNewEmbeds()
Gets the new embeds of the message.Optional<String>
getOldContent()
Gets the old content of the message.Optional<List<Embed>>
getOldEmbeds()
Gets the old embeds of the message.-
Methods inherited from interface org.javacord.api.event.message.MessageEvent
addReactionsToMessage, addReactionsToMessage, addReactionToMessage, addReactionToMessage, deleteMessage, deleteMessage, 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.message.OptionalMessageEvent
getMessage, getMessageAttachments, getMessageAuthor, getMessageContent, getReadableMessageContent
-
Methods inherited from interface org.javacord.api.event.message.RequestableMessageEvent
requestMessage
-
Methods inherited from interface org.javacord.api.event.channel.TextChannelEvent
getChannel, getGroupChannel, getPrivateChannel, getServerTextChannel
-
-
-
-
Method Detail
-
getNewContent
String getNewContent()
Gets the new content of the message.- Returns:
- The new content of the message.
-
getOldContent
Optional<String> getOldContent()
Gets the old content of the message. It will only be present, if the message is in the cache.- Returns:
- The old content of the message.
-
getNewEmbeds
List<Embed> getNewEmbeds()
Gets the new embeds of the message.- Returns:
- The new embeds of the message.
-
-