public class Channel extends Object implements SenderAndCidMidGetter, AtAble
| 字段名 | 类型 | 描述 |
|---|---|---|
| id | string | 子频道 id |
| guild_id | string | 频道 id |
| name | string | 子频道名 |
| type | int | 子频道类型 ChannelType |
| sub_type | int | 子频道子类型 ChannelSubType |
| position | int | 排序值,具体请参考 有关 position 的说明 |
| parent_id | string | 所属分组 id,仅对子频道有效,对 子频道分组(ChannelType=4) 无效 |
| owner_id | string | 创建人 id |
| private_type | int | 子频道私密类型 PrivateType |
| speak_permission | int | 子频道发言权限 SpeakPermission |
| application_id | string | 用于标识应用子频道应用类型,仅应用子频道时会使用该字段,具体定义请参考 应用子频道的应用类型 |
| permissions | string | 用户拥有的子频道权限 Permissions |
| 限定符和类型 | 字段和说明 |
|---|---|
static Map<String,String> |
SEND_FORM_DATA_HEADERS |
static Map<String,String> |
SEND_MESSAGE_HEADERS |
| 构造器和说明 |
|---|
Channel() |
| 限定符和类型 | 方法和说明 |
|---|---|
At |
at() |
Bot |
getBot() |
String |
getCid()
获取 channel id
|
ActionResult |
send(MessagePacket packet)
此方式发送的消息 为主动消息 会受到次数限制
|
ActionResult |
send(RawPreMessage msg)
此方式发送的消息 为主动消息 会受到次数限制
|
ActionResult |
send(SendAble msg)
以各种方式 达到想要发送的效果
|
ActionResult |
send(String text)
此方式发送的消息 为主动消息 会受到次数限制
|
ActionResult |
send(String text,
RawMessage message)
此方式发送的消息 为主动消息 会受到次数限制
|
void |
setBot(Bot bot) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMidpublic ActionResult send(String text, RawMessage message)
public ActionResult send(String text)
public ActionResult send(MessagePacket packet)
public ActionResult send(RawPreMessage msg)
public ActionResult send(SendAble msg)
Senderpublic String getCid()
SenderAndCidMidGettergetCid 在接口中 SenderAndCidMidGetterpublic Bot getBot()
getBot 在接口中 BotContentpublic void setBot(Bot bot)
setBot 在接口中 BotContentCopyright © 2023. All rights reserved.