public class Member extends Contact implements OpAble, AtAble
| 字段名 | 类型 | 描述 |
|---|---|---|
| user | User | 用户的频道基础信息,只有成员相关接口中会填充此信息 |
| nick | string | 用户的昵称 |
| roles | string 数组 | 用户在频道内的身份组ID, 默认值可参考DefaultRoles |
| joined_at | ISO8601 timestamp | 用户加入频道的时间 |
| Constructor and Description |
|---|
Member() |
| Modifier and Type | Method and Description |
|---|---|
At |
at() |
String |
getCid()
获取 channel id
|
EnvType |
getEnvType()
获得发送环境
guild/qq
|
String |
getId() |
String |
getOpenid() |
Result |
send(SendAble msg)
以各种方式 达到想要发送的效果
|
Result |
send(String text)
以JSON方式发送文本消息
|
Result |
send(String text,
RawMessage message)
以JSON方式发送文本消息并引用指定消息
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetOpUserIdgetMidgetBotpublic String getId()
public String getOpenid()
public Result send(String text, RawMessage message)
Senderpublic String getCid()
SenderAndCidMidGettergetCid in interface SenderAndCidMidGetterpublic EnvType getEnvType()
SenderAndCidMidGettergetEnvType in interface SenderAndCidMidGetterCopyright © 2025. All rights reserved.