Send an reliable addon message to a single target. The callback will respond with success only once the server has accepted the message for processing and queueing. Failure may occur if the target is invalid or if the target's receive queue is full. Messages may be sent only to players that are nearby, in your guild, in your party or raid, or that have sent you a message or tell during this session. This command is throttled by the "message" throttle type.
Command.Message.Send(target, identifier, data, callback) | |||
Parameter | Type | Datatype | Description |
---|---|---|---|
callback | parameter | callbackfunction | A standard command callback, used for detecting success or failure. See the "callbackfunction" documentation for more details. |
data | parameter | string | The data to send. This parameter is binary-safe. |
identifier | parameter | string | The identifier type of the message. Used for the receiver to filter accepted messages via the Command.Message.Accept() function. Must be at least three characters long. |
target | parameter | string | The name of the player to send the message to. |