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 java.lang.StringgetNewContent()Gets the new content of the message.java.util.List<Embed>getNewEmbeds()Gets the new embeds of the message.java.util.Optional<java.lang.String>getOldContent()Gets the old content of the message.java.util.Optional<java.util.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, 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, getMessageLink, getReadableMessageContent
-
Methods inherited from interface org.javacord.api.event.message.RequestableMessageEvent
requestMessage
-
Methods inherited from interface org.javacord.api.event.channel.TextChannelEvent
getChannel, getPrivateChannel, getServerTextChannel, getServerThreadChannel
-
-
-
-
Method Detail
-
getNewContent
java.lang.String getNewContent()
Gets the new content of the message.- Returns:
- The new content of the message.
-
getOldContent
java.util.Optional<java.lang.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
java.util.List<Embed> getNewEmbeds()
Gets the new embeds of the message.- Returns:
- The new embeds of the message.
-
getOldEmbeds
java.util.Optional<java.util.List<Embed>> getOldEmbeds()
Gets the old embeds of the message. It will only be present, if the message is in the cache.- Returns:
- The old embeds of the message.
-
-