Class GenericGuildMessageEvent
- java.lang.Object
-
- net.dv8tion.jda.core.events.Event
-
- net.dv8tion.jda.core.events.guild.GenericGuildEvent
-
- net.dv8tion.jda.core.events.message.guild.GenericGuildMessageEvent
-
- Direct Known Subclasses:
GenericGuildMessageReactionEvent
,GuildMessageDeleteEvent
,GuildMessageEmbedEvent
,GuildMessageReactionRemoveAllEvent
,GuildMessageReceivedEvent
,GuildMessageUpdateEvent
public abstract class GenericGuildMessageEvent extends GenericGuildEvent
Indicates that aMessage
event is fired from aTextChannel
.
Every GuildMessageEvent is derived from this event and can be casted.Can be used to detect any GuildMessageEvent.
-
-
Constructor Summary
Constructors Constructor Description GenericGuildMessageEvent(JDA api, long responseNumber, long messageId, TextChannel channel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TextChannel
getChannel()
TheTextChannel
for this messagejava.lang.String
getMessageId()
The message idlong
getMessageIdLong()
The message id-
Methods inherited from class net.dv8tion.jda.core.events.guild.GenericGuildEvent
getGuild
-
Methods inherited from class net.dv8tion.jda.core.events.Event
getJDA, getResponseNumber
-
-
-
-
Constructor Detail
-
GenericGuildMessageEvent
public GenericGuildMessageEvent(JDA api, long responseNumber, long messageId, TextChannel channel)
-
-
Method Detail
-
getMessageId
public java.lang.String getMessageId()
The message id- Returns:
- The message id
-
getMessageIdLong
public long getMessageIdLong()
The message id- Returns:
- The message id
-
getChannel
public TextChannel getChannel()
TheTextChannel
for this message- Returns:
- The TextChannel for this message
-
-