Guild
Definition
Guild
FIELD | TYPE | DESCRIPTION |
---|---|---|
id | string | guild ID |
name | string | guild name |
API
bot.getGuild(guildId)
- POST
/v1/guild.get
FIELD | TYPE | DESCRIPTION |
---|---|---|
guild_id | string | guild ID |
Get a guild by ID. Returns a guild object.
bot.getGuildList(next?)
- POST
/v1/guild.list
FIELD | TYPE | DESCRIPTION |
---|---|---|
next | string | pagination token |
Get guilds where the current user is a member. Returns a list of partial guild objects.
bot.handleGuildRequest(messageId, approve, comment?)
- messageId:
string
请求 ID - approve:
boolean
是否通过请求 - comment:
string
备注信息 - 返回值:
Promise<void>
处理来自群组的邀请。