GenericGuildMessageReactionEvent
, GuildMessageDeleteEvent
, GuildMessageEmbedEvent
, GuildMessageReactionRemoveAllEvent
, GuildMessageReceivedEvent
, GuildMessageUpdateEvent
public abstract class GenericGuildMessageEvent extends GenericGuildEvent
Message
event is fired from a TextChannel
.
Can be used to detect any GuildMessageEvent.
Constructor | Description |
---|---|
GenericGuildMessageEvent(JDA api,
long responseNumber,
long messageId,
TextChannel channel) |
Modifier and Type | Method | Description |
---|---|---|
TextChannel |
getChannel() |
The
TextChannel for this message |
java.lang.String |
getMessageId() |
The message id
|
long |
getMessageIdLong() |
The message id
|
getJDA, getResponseNumber
getGuild
public GenericGuildMessageEvent(JDA api, long responseNumber, long messageId, TextChannel channel)
public java.lang.String getMessageId()
public long getMessageIdLong()
public TextChannel getChannel()
TextChannel
for this message