GenericMessageReactionEvent, MessageDeleteEvent, MessageEmbedEvent, MessageReactionRemoveAllEvent, MessageReceivedEvent, MessageUpdateEventpublic abstract class GenericMessageEvent extends Event
Message was created/deleted/changed.
Can be used to detect any MessageEvent.
| Constructor | Description |
|---|---|
GenericMessageEvent(JDA api,
long responseNumber,
long messageId,
MessageChannel channel) |
| Modifier and Type | Method | Description |
|---|---|---|
MessageChannel |
getChannel() |
The
MessageChannel for this Message |
ChannelType |
getChannelType() |
The
ChannelType for this message |
Group |
getGroup() |
The
Group the Message was received in. |
Guild |
getGuild() |
The
Guild the Message was received in. |
java.lang.String |
getMessageId() |
The id for this message
|
long |
getMessageIdLong() |
The id for this message
|
PrivateChannel |
getPrivateChannel() |
The
PrivateChannel the Message was received in. |
TextChannel |
getTextChannel() |
The
TextChannel the Message was received in. |
boolean |
isFromType(ChannelType type) |
Indicates whether the message is from the specified
ChannelType |
getJDA, getResponseNumberpublic GenericMessageEvent(JDA api, long responseNumber, long messageId, MessageChannel channel)
public MessageChannel getChannel()
MessageChannel for this Messagepublic java.lang.String getMessageId()
public long getMessageIdLong()
public boolean isFromType(ChannelType type)
ChannelTypetype - The ChannelTypepublic ChannelType getChannelType()
ChannelType for this messagepublic Guild getGuild()
Guild the Message was received in.
TextChannel,
this will return null.isFromType(ChannelType)public TextChannel getTextChannel()
TextChannel the Message was received in.
TextChannel,
this will return null.isFromType(ChannelType)public PrivateChannel getPrivateChannel()
PrivateChannel the Message was received in.
PrivateChannel,
this will return null.isFromType(ChannelType)public Group getGroup()
Group the Message was received in.
Group,
this will return null.isFromType(ChannelType)