public interface DirectSender extends Sender
| 限定符和类型 | 方法和说明 |
|---|---|
default ActionResult |
send(MessagePacket packet)
以自定义方式发送消息
|
default ActionResult |
send(RawPreMessage msg)
自定义消息
|
default ActionResult |
send(String text)
以JSON方式发送文本消息
|
default ActionResult |
send(String text,
RawMessage message)
以JSON方式发送文本消息并引用指定消息
|
ActionResult |
sendDirect(MessagePacket packet)
以自定义方式发送消息
|
ActionResult |
sendDirect(RawPreMessage msg)
自定义消息
|
ActionResult |
sendDirect(String text)
以JSON方式发送文本消息
|
ActionResult |
sendDirect(String text,
RawMessage message)
以JSON方式发送文本消息并引用指定消息
|
default ActionResult send(String text)
Senderdefault ActionResult send(String text, RawMessage message)
Senderdefault ActionResult send(MessagePacket packet)
Senderdefault ActionResult send(RawPreMessage msg)
SenderActionResult sendDirect(String text)
text - ActionResult sendDirect(String text, RawMessage message)
text - message - ActionResult sendDirect(MessagePacket packet)
packet - ActionResult sendDirect(RawPreMessage msg)
msg - Copyright © 2023. All rights reserved.