Class MessageReceivedEvent

    • Constructor Detail

    • Method Detail

      • getAuthor

        @Nonnull
        public User getAuthor()
        The Author of the Message received as User object.
        This will be never-null but might be a fake user if Message was sent via Webhook (Guild only).
        Returns:
        The Author of the Message.
        See Also:
        isWebhookMessage(), IFakeable.isFake()
      • isWebhookMessage

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