Class GuildMessageEmbedEvent

  • All Implemented Interfaces:
    GenericEvent

    public class GuildMessageEmbedEvent
    extends GenericGuildMessageEvent
    Indicates that a Message contains an Embed in a GuildChannel.
    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 guild message.

    Requirements

    This event requires the GUILD_MESSAGES intent to be enabled.

    • Constructor Detail

      • GuildMessageEmbedEvent

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

      • getMessageEmbeds

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