Interface CertainMessageEvent

    • Method Detail

      • getMessage

        Message getMessage()
        Gets the message of the event.
        Returns:
        The message of the event.
      • canYouReadContent

        default boolean canYouReadContent()
        Checks if the bot can read the content of the message.
        Returns:
        Whether the bot can read the content of the message.
      • isPrivateMessage

        default boolean isPrivateMessage()
        Checks if the event's message was sent in a private channel.
        Returns:
        Whether 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 a server channel.
        Returns:
        Whether the event's message was sent in a server channel.
        See Also:
        Message.isServerMessage()
      • 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 java.util.List<MessageAttachment> getMessageAttachments()
        Gets all attachments of the event's message.
        Returns:
        All attachments of the event's message.
        Throws:
        MissingIntentException - If not a single of the following requirements is met:
        • The bot has been mentioned in the message.
        • Your are the author of the message.
        • The message is a DM.
        • The Intent.MESSAGE_CONTENT has been enabled in your code and Discord Developer dashboard
        See Also:
        Message.getAttachments()
      • getMessageContent

        default java.lang.String getMessageContent()
        Gets the content of the event's message.
        Returns:
        The content of the event's message.
        Throws:
        MissingIntentException - If not a single of the following requirements is met:
        • The bot has been mentioned in the message.
        • Your are the author of the message.
        • The message is a DM.
        • The Intent.MESSAGE_CONTENT has been enabled in your code and Discord Developer dashboard
        See Also:
        Message.getContent()
      • getReadableMessageContent

        default java.lang.String getReadableMessageContent()
        Gets the readable content of the event's message.
        Returns:
        The readable content of the event's message.
        Throws:
        MissingIntentException - If not a single of the following requirements is met:
        • The bot has been mentioned in the message.
        • Your are the author of the message.
        • The message is a DM.
        • The Intent.MESSAGE_CONTENT has been enabled in your code and Discord Developer dashboard
        See Also:
        Message.getReadableContent()
      • getMessageLink

        default java.net.URL getMessageLink()
        Gets the link of the event's message.
        Returns:
        The link of the event's message.
        See Also:
        Message.getLink()