Class PrivateMessageReceivedEvent
- java.lang.Object
-
- net.dv8tion.jda.api.events.Event
-
- net.dv8tion.jda.api.events.message.priv.GenericPrivateMessageEvent
-
- net.dv8tion.jda.api.events.message.priv.PrivateMessageReceivedEvent
-
- All Implemented Interfaces:
GenericEvent
public class PrivateMessageReceivedEvent extends GenericPrivateMessageEvent
Indicates that a Message was sent in aPrivateChannel
.Can be used to retrieve affected PrivateChannel and Message.
Requirements
This event requires the
DIRECT_MESSAGES
intent to be enabled.
-
-
Constructor Summary
Constructors Constructor Description PrivateMessageReceivedEvent(JDA api, long responseNumber, Message message)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description User
getAuthor()
The author for this messageMessage
getMessage()
TheMessage
-
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
-
-