Class SocialMessageReceive
java.lang.Object
ovh.mythmc.social.api.callback.message.SocialMessageReceive
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
SocialUserwho sent the original message. - recipient: The
SocialUserwho will receive the message. - channel: The
ChatChannelthe message was sent in. - message: The
Componentrepresenting the message content. - messageId: The unique identifier of the message.
- replyId: The identifier of the message being replied to, or
nullif this is not a reply. - cancelled: Whether this event has been cancelled, preventing the message from being delivered.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisReply()Determines if the current message is a reply to another message.
-
Constructor Details
-
SocialMessageReceive
public SocialMessageReceive()
-
-
Method Details
-
isReply
public boolean isReply()Determines if the current message is a reply to another message.- Returns:
trueif this message is a reply, otherwisefalse
-