Skip to content

Guild

Definitions

Guild

FIELDTYPEDESCRIPTION
idstringguild id
namestring?guild name
avatarstring?guild avatar

API

Get Guild

POST /guild.get
FIELDTYPEDESCRIPTION
guild_idstringguild id

Get a guild by id. Returns a Guild object.

Get Guild List

POST /guild.list
FIELDTYPEDESCRIPTION
nextstringpagination token

Get guilds where the current user is a member. Returns a paginated list of partial Guild objects.

Handle Guild Invitation

POST /guild.approve
FIELDTYPEDESCRIPTION
message_idstringrequest id
approvebooleanwhether to approve the request
commentstring?comment

Handle an invitation from a guild.

Events

guild-added

Triggered when joining a guild. Required resource: guild.

guild-updated

Triggered when a guild is modified. Required resource: guild.

guild-removed

Triggered when leaving a guild. Required resource: guild.

guild-request

Triggered when receiving a new guild invitation. Required resource: guild.