public class Channel extends Contact implements SenderAndCidMidGetter, AtAble, DeleteAble
| 字段名 | 类型 | 描述 |
|---|---|---|
| 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 |
| Modifier and Type | Field and Description |
|---|---|
static Map<String,String> |
SEND_FORM_DATA_HEADERS |
static Map<String,String> |
SEND_MESSAGE_HEADERS |
| Constructor and Description |
|---|
Channel() |
| Modifier and Type | Method and Description |
|---|---|
At |
at() |
Object |
delete()
删除
|
String |
getCid()
获取 channel id
|
EnvType |
getEnvType()
获得发送环境
guild/qq
|
Result<ActionResult> |
send(MessagePacket packet)
此方式发送的消息 为主动消息 会受到次数限制
|
Result<ActionResult> |
send(RawPreMessage msg)
此方式发送的消息 为主动消息 会受到次数限制
|
Result<ActionResult> |
send(SendAble msg)
以各种方式 达到想要发送的效果
|
Result<ActionResult> |
send(String text)
此方式发送的消息 为主动消息 会受到次数限制
|
Result<ActionResult> |
send(String text,
RawMessage message)
此方式发送的消息 为主动消息 会受到次数限制
|
void |
setBot(Bot bot) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMidgetBotpublic Result<ActionResult> send(String text, RawMessage message)
public Result<ActionResult> send(String text)
public Result<ActionResult> send(MessagePacket packet)
public Result<ActionResult> send(RawPreMessage msg)
public Result<ActionResult> send(SendAble msg)
Senderpublic Object delete()
DeleteAbledelete in interface DeleteAblepublic String getCid()
SenderAndCidMidGettergetCid in interface SenderAndCidMidGetterpublic void setBot(Bot bot)
setBot in interface BotContentsetBot in class Contactpublic EnvType getEnvType()
SenderAndCidMidGettergetEnvType in interface SenderAndCidMidGetterCopyright © 2025. All rights reserved.