Class SocialMessageReceive

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

public class SocialMessageReceive extends Object
Event fired before a message is delivered to a specific SocialUser.

This event allows modification or cancellation of the message before it is delivered to the recipient. It provides details about the message, the sender, the recipient, and the channel, as well as whether the message is a reply to another message.

Fields:

  • sender: The SocialUser who sent the original message.
  • recipient: The SocialUser who will receive the message.
  • channel: The ChatChannel the message was 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 delivered.
  • Constructor Details

    • SocialMessageReceive

      public SocialMessageReceive()
  • 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