public class Dms extends Object implements DirectSender, SenderAndCidMidGetter
| 字段名 | 类型 | 描述 |
|---|---|---|
| guild_id | string | 私信会话关联的频道 id |
| channel_id | string | 私信会话关联的子频道 id |
| create_time | string | 创建私信会话时间戳 |
| 构造器和说明 |
|---|
Dms() |
| 限定符和类型 | 方法和说明 |
|---|---|
Bot |
getBot() |
String |
getCid()
获取 channel id
|
ActionResult |
send(SendAble msg)
以各种方式 达到想要发送的效果
|
ActionResult |
sendDirect(MessagePacket packet)
此方式为主动消息
|
ActionResult |
sendDirect(RawPreMessage msg)
自定义消息
|
ActionResult |
sendDirect(String text)
此方式为主动消息
|
ActionResult |
sendDirect(String text,
RawMessage message)
此方式为主动消息
|
void |
setBot(Bot bot) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsend, send, send, sendgetMidpublic ActionResult sendDirect(String text)
sendDirect 在接口中 DirectSendertext - public ActionResult sendDirect(String text, RawMessage message)
sendDirect 在接口中 DirectSendertext - message - public ActionResult sendDirect(MessagePacket packet)
sendDirect 在接口中 DirectSenderpacket - public ActionResult sendDirect(RawPreMessage msg)
DirectSendersendDirect 在接口中 DirectSenderpublic ActionResult send(SendAble msg)
Senderpublic String getCid()
SenderAndCidMidGettergetCid 在接口中 SenderAndCidMidGetterpublic Bot getBot()
getBot 在接口中 BotContentpublic void setBot(Bot bot)
setBot 在接口中 BotContentCopyright © 2023. All rights reserved.