Class GuildMessageReceivedEvent

  • All Implemented Interfaces:

    public class GuildMessageReceivedEvent
    extends GenericGuildMessageEvent
    Indicates that a Message is received in a TextChannel.

    Can be used to retrieve the affected TextChannel and Message.


    This event requires the GUILD_MESSAGES intent to be enabled.

    • Constructor Detail

      • GuildMessageReceivedEvent

        public GuildMessageReceivedEvent​(@Nonnull
                                         JDA api,
                                         long responseNumber,
                                         Message message)
    • Method Detail

      • isWebhookMessage

        public boolean isWebhookMessage()
        Whether or not the Message received was sent via a Webhook.
        This is a shortcut for getMessage().isWebhookMessage().
        Whether or not the Message was sent via Webhook