Package org.javacord.api.event.message
Interface CertainMessageEvent
-
- All Superinterfaces:
ChannelEvent,Event,MessageEvent,TextChannelEvent
- All Known Subinterfaces:
CachedMessagePinEvent,CachedMessageUnpinEvent,MessageCreateEvent
public interface CertainMessageEvent extends MessageEvent
A message event where the message is guaranteed to be in the cache.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description MessagegetMessage()Gets the message of the event.default List<MessageAttachment>getMessageAttachments()Gets a list with all attachments of the event's message.default MessageAuthorgetMessageAuthor()Gets the author of the event's message.default StringgetMessageContent()Gets the content of the event's message.default URLgetMessageLink()Gets the link of the event's message.default StringgetReadableMessageContent()Gets the readable content of the event's message.default booleanisGroupMessage()Checks if the event's message was sent in agroup channel.default booleanisPrivateMessage()Checks if the event's message was sent in aprivate channel.default booleanisServerMessage()Checks if the event's message was sent in aserver channel.-
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.channel.TextChannelEvent
getChannel, getGroupChannel, getPrivateChannel, getServerTextChannel
-
-
-
-
Method Detail
-
getMessage
Message getMessage()
Gets the message of the event.- Returns:
- The message of the event.
-
isPrivateMessage
default boolean isPrivateMessage()
Checks if the event's message was sent in aprivate channel.- Returns:
- Whether or not the event's message was sent in a private channel.
- See Also:
Message.isPrivateMessage()
-
isServerMessage
default boolean isServerMessage()
Checks if the event's message was sent in aserver channel.- Returns:
- Whether or not the event's message was sent in a server channel.
- See Also:
Message.isServerMessage()
-
isGroupMessage
default boolean isGroupMessage()
Checks if the event's message was sent in agroup channel.- Returns:
- Whether or not the event's message was sent in a group channel.
- See Also:
Message.isPrivateMessage()
-
getMessageAuthor
default MessageAuthor getMessageAuthor()
Gets the author of the event's message.- Returns:
- The author of the event's message.
- See Also:
Message.getAuthor()
-
getMessageAttachments
default List<MessageAttachment> getMessageAttachments()
Gets a list with all attachments of the event's message.- Returns:
- A list with all attachments of the event's message.
- See Also:
Message.getAttachments()
-
getMessageContent
default String getMessageContent()
Gets the content of the event's message.- Returns:
- The content of the event's message.
- See Also:
Message.getContent()
-
getReadableMessageContent
default String getReadableMessageContent()
Gets the readable content of the event's message.- Returns:
- The readable content of the event's message.
- See Also:
Message.getReadableContent()
-
getMessageLink
default URL getMessageLink()
Gets the link of the event's message.- Returns:
- The link of the event's message.
- See Also:
Message.getLink()
-
-