Class SocialMessageSend
java.lang.Object
ovh.mythmc.social.api.callback.message.SocialMessageSend
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
SocialUserwho sent the original message. - channel: The
ChatChannelthe message will be 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 sent.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisReply()Determines if the current message is a reply to another message.
-
Constructor Details
-
SocialMessageSend
public SocialMessageSend()
-
-
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.
-