Class MessageEmbedEvent

  • All Implemented Interfaces:
    GenericEvent

    public class MessageEmbedEvent
    extends GenericMessageEvent
    Indicates that a Message contains an Embed in a MessageChannel.
    Discord may need to do additional calculations and resizing tasks on messages that embed websites, thus they send the message only with content and link and use this update to add the missing embed later when the server finishes those calculations.

    Can be used to retrieve MessageEmbeds from any message. No matter if private or guild.

    Requirements

    This event requires at least one of the following intents (Will not fire at all if neither is enabled):

    • Constructor Detail

      • MessageEmbedEvent

        public MessageEmbedEvent​(@Nonnull
                                 JDA api,
                                 long responseNumber,
                                 long messageId,
                                 @Nonnull
                                 MessageChannel channel,
                                 @Nonnull
                                 java.util.List<MessageEmbed> embeds)
    • Method Detail

      • getMessageEmbeds

        @Nonnull
        public java.util.List<MessageEmbed> getMessageEmbeds()
        The list of MessageEmbeds
        Returns:
        The list of MessageEmbeds