Class MessageReceivedEvent

  • All Implemented Interfaces:

    public class MessageReceivedEvent
    extends GenericMessageEvent
    Indicates that a Message was received in a MessageChannel.
    This includes TextChannel and PrivateChannel!

    Can be used to detect that a Message is received in either a guild- or private channel. Providing a MessageChannel and Message.


    This event requires at least one of the following intents (Will not fire at all if neither is enabled):

    • Constructor Detail

    • Method Detail

      • isWebhookMessage

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