Class MessageEmbedEvent


  • 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.

    • Constructor Detail

      • MessageEmbedEvent

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

      • getMessageEmbeds

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