mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-07 00:35:36 +08:00
2.3 KiB
2.3 KiB
ZM\API\GoCqhttpAPIV11
getGuildServiceProfile
public function getGuildServiceProfile(): array|bool
描述
获取频道系统内BOT的资料 响应字段:nickname, tiny_id, avatar_url
返回
| 类型 | 描述 |
|---|---|
| array | bool |
getGuildList
public function getGuildList(): array|bool
描述
获取频道列表
返回
| 类型 | 描述 |
|---|---|
| array | bool |
getGuildMetaByGuest
public function getGuildMetaByGuest(int|string $guild_id): array|bool
描述
通过访客获取频道元数据
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| guild_id | int | string |
返回
| 类型 | 描述 |
|---|---|
| array | bool |
getGuildChannelList
public function getGuildChannelList(int|string $guild_id, false $no_cache): array|bool
描述
获取子频道列表
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| guild_id | int | string |
| no_cache | false | 禁用缓存(默认为false) |
返回
| 类型 | 描述 |
|---|---|
| array | bool |
getGuildMembers
public function getGuildMembers(int|string $guild_id): array|bool
描述
获取频道成员列表
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| guild_id | int | string |
返回
| 类型 | 描述 |
|---|---|
| array | bool |
sendGuildChannelMsg
public function sendGuildChannelMsg(int|string $guild_id, int|string $channel_id, string $message): array|bool
描述
发送信息到子频道
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| guild_id | int | string |
| channel_id | int | string |
| message | string | 信息内容 |
返回
| 类型 | 描述 |
|---|---|
| array | bool |