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 Guild Message contains one or moreEmbeds
.Can be used to retrieve the affected TextChannel, the id of the affected Message and a list of MessageEmbeds.
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, List<MessageEmbed> embeds)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 List<MessageEmbed> embeds)
-
-
Method Detail
-
getMessageEmbeds
@Nonnull public List<MessageEmbed> getMessageEmbeds()
TheMessageEmbeds
- Returns:
- The MessageEmbeds
-
-