Class GuildMessageEmbedEvent
- java.lang.Object
-
- net.dv8tion.jda.api.events.Event
-
- net.dv8tion.jda.api.events.guild.GenericGuildEvent
-
- net.dv8tion.jda.api.events.message.guild.GenericGuildMessageEvent
-
- net.dv8tion.jda.api.events.message.guild.GuildMessageEmbedEvent
-
- All Implemented Interfaces:
GenericEvent
public class GuildMessageEmbedEvent extends GenericGuildMessageEvent
Indicates that a Message contains anEmbed
in aGuildChannel
.
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 Summary
Constructors Constructor Description GuildMessageEmbedEvent(JDA api, long responseNumber, long messageId, TextChannel channel, java.util.List<MessageEmbed> embeds)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<MessageEmbed>
getMessageEmbeds()
TheMessageEmbeds
-
Methods inherited from class net.dv8tion.jda.api.events.message.guild.GenericGuildMessageEvent
getChannel, getMessageId, getMessageIdLong
-
Methods inherited from class net.dv8tion.jda.api.events.guild.GenericGuildEvent
getGuild
-
Methods inherited from class net.dv8tion.jda.api.events.Event
getJDA, getResponseNumber
-
-
-
-
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()
TheMessageEmbeds
- Returns:
- The MessageEmbeds
-
-