public class GuildMessageReceivedEvent extends GenericGuildMessageEvent
TextChannel
.
Can be used to retrieve the affected TextChannel and Message.
Constructor | Description |
---|---|
GuildMessageReceivedEvent(JDA api,
long responseNumber,
Message message) |
Modifier and Type | Method | Description |
---|---|---|
User |
getAuthor() |
The Author of the Message received as
User object. |
Member |
getMember() |
The Author of the Message received as
Member object. |
Message |
getMessage() |
The received
Message object. |
boolean |
isWebhookMessage() |
Whether or not the Message received was sent via a Webhook.
|
getJDA, getResponseNumber
getGuild
getChannel, getMessageId, getMessageIdLong
public Message getMessage()
Message
object.Message
object.public User getAuthor()
User
object.
isWebhookMessage()
,
IFakeable.isFake()
public Member getMember()
Member
object.
null
in case of isWebhookMessage()
returning true
.isWebhookMessage()
public boolean isWebhookMessage()
getMessage().isWebhookMessage()
.