Class PrivateMessageEmbedEvent
- java.lang.Object
-
- net.dv8tion.jda.api.events.Event
-
- net.dv8tion.jda.api.events.message.priv.GenericPrivateMessageEvent
-
- net.dv8tion.jda.api.events.message.priv.PrivateMessageEmbedEvent
-
- All Implemented Interfaces:
GenericEvent
public class PrivateMessageEmbedEvent extends GenericPrivateMessageEvent
Indicates that a Message containsEmbeds
in aPrivateChannel
.Can be used to retrieve affected PrivateChannel, the ID of the deleted Message and a list of MessageEmbeds.
Requirements
This event requires the
DIRECT_MESSAGES
intent to be enabled.
-
-
Constructor Summary
Constructors Constructor Description PrivateMessageEmbedEvent(JDA api, long responseNumber, long messageId, PrivateChannel 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.priv.GenericPrivateMessageEvent
getChannel, getMessageId, getMessageIdLong
-
Methods inherited from class net.dv8tion.jda.api.events.Event
getJDA, getResponseNumber
-
-
-
-
Constructor Detail
-
PrivateMessageEmbedEvent
public PrivateMessageEmbedEvent(@Nonnull JDA api, long responseNumber, long messageId, @Nonnull PrivateChannel channel, @Nonnull java.util.List<MessageEmbed> embeds)
-
-
Method Detail
-
getMessageEmbeds
@Nonnull public java.util.List<MessageEmbed> getMessageEmbeds()
TheMessageEmbeds
- Returns:
- The MessageEmbeds
-
-