public class Guild extends Object implements SessionCreator, OpAble, BotContent
| 字段名 | 类型 | 描述 |
|---|---|---|
| id | string | 频道ID |
| name | string | 频道名称 |
| icon | string | 频道头像地址 |
| owner_id | string | 创建人用户ID |
| owner | bool | 当前人是否是创建人 |
| member_count | int | 成员数 |
| max_members | int | 最大成员数 |
| description | string | 描述 |
| joined_at | string | 加入时间 |
| Constructor and Description |
|---|
Guild() |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Channel> |
channelMap() |
List<Channel> |
channels() |
Channel |
create(ChannelData data)
创建一个子频道 ## 仅私域
|
Dms |
create(String uid)
私信会话创建
|
Channel |
getChannel(String cid) |
Member |
getMember(String userId) |
MemberWithGuildID |
getMemberWithGuildId(String userId) |
void |
setBot(Bot bot) |
Member |
setMember(Member member) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetOpUserIdgetBotpublic Dms create(String uid)
SessionCreatorcreate in interface SessionCreatoruid - public MemberWithGuildID getMemberWithGuildId(String userId)
public void setBot(Bot bot)
setBot in interface BotContentpublic Channel create(ChannelData data)
data - Copyright © 2023. All rights reserved.