public interface DirectSender extends Sender
| Modifier and Type | Method and Description |
|---|---|
default Result<ActionResult> |
send(MessagePacket packet)
以自定义方式发送消息
|
default Result<ActionResult> |
send(RawPreMessage msg)
自定义消息
|
default Result<ActionResult> |
send(String text)
以JSON方式发送文本消息
|
default Result<ActionResult> |
send(String text,
RawMessage message)
以JSON方式发送文本消息并引用指定消息
|
Result<ActionResult> |
sendDirect(MessagePacket packet)
以自定义方式发送消息
|
Result<ActionResult> |
sendDirect(RawPreMessage msg)
自定义消息
|
Result<ActionResult> |
sendDirect(String text)
以JSON方式发送文本消息
|
Result<ActionResult> |
sendDirect(String text,
RawMessage message)
以JSON方式发送文本消息并引用指定消息
|
default Result<ActionResult> send(String text)
Senderdefault Result<ActionResult> send(String text, RawMessage message)
Senderdefault Result<ActionResult> send(MessagePacket packet)
Senderdefault Result<ActionResult> send(RawPreMessage msg)
SenderResult<ActionResult> sendDirect(String text)
text - Result<ActionResult> sendDirect(String text, RawMessage message)
text - message - Result<ActionResult> sendDirect(MessagePacket packet)
packet - Result<ActionResult> sendDirect(RawPreMessage msg)
msg - Copyright © 2025. All rights reserved.