Class SocialMessageSend

java.lang.Object
ovh.mythmc.social.api.callback.message.SocialMessageSend

public final class SocialMessageSend extends Object
Event fired before a finalized (immutable) message is sent.

This event allows you to perform actions before the message is actually delivered. It provides details about the sender, the channel, the message content, and whether the message is a reply to another message. If the event is cancelled, the message will not be sent.

For the event fired while preparing a mutable message, see SocialMessagePrepare.

Fields:

  • sender: The SocialUser who sent the original message.
  • channel: The ChatChannel the message will be sent in.
  • message: The Component representing the message content.
  • messageId: The unique identifier of the message.
  • replyId: The identifier of the message being replied to, or null if this is not a reply.
  • cancelled: Whether this event has been cancelled, preventing the message from being sent.
  • Constructor Details

    • SocialMessageSend

      public SocialMessageSend()
  • Method Details

    • isReply

      public boolean isReply()
      Determines if the current message is a reply to another message.
      Returns:
      true if this message is a reply, otherwise false.