Interface OptionalMessageEvent

    • Method Detail

      • getMessage

        java.util.Optional<Message> getMessage()
        Gets the message from the cache.
        Returns:
        The message from the cache.
      • getMessageAuthor

        default java.util.Optional<MessageAuthor> getMessageAuthor()
        Gets the author of the event's message.
        Returns:
        The author of the event's message.
        See Also:
        Message.getAuthor()
      • getMessageAttachments

        default java.util.Optional<java.util.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 java.util.Optional<java.lang.String> getMessageContent()
        Gets the content of the event's message.
        Returns:
        The content of the event's message.
        See Also:
        Message.getContent()
      • getReadableMessageContent

        default java.util.Optional<java.lang.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 java.util.Optional<java.net.URL> getMessageLink()
        Gets the link of the event's message.
        Returns:
        The link of the event's message.
        See Also:
        Message.getLink()