Skip to content

Guild

Definition

Guild

FIELDTYPEDESCRIPTION
idstringguild ID
namestringguild name

API

bot.getGuild(guildId)

  • POST /v1/guild.get
FIELDTYPEDESCRIPTION
guild_idstringguild ID

Get a guild by ID. Returns a guild object.

bot.getGuildList(next?)

  • POST /v1/guild.list
FIELDTYPEDESCRIPTION
nextstringpagination 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>

处理来自群组的邀请。