Skip to content

Guild Role experimental

Definitions

GuildRole

FIELDTYPEDESCRIPTION
idstringrole id
namestring?role name

API

Set Guild Member Role

POST /guild.member.role.set
FIELDTYPEDESCRIPTION
guild_idstringguild id
user_idstringuser id
role_idstringrole id

Set a role for a user in the guild.

Unset Guild Member Role

POST /guild.member.role.unset
FIELDTYPEDESCRIPTION
guild_idstringguild id
user_idstringuser id
role_idstringrole id

Remove a role from a user in the guild.

Get Guild Role List

POST /guild.role.list
FIELDTYPEDESCRIPTION
guild_idstringguild id
nextstring?pagination token

Get all roles in a guild. Returns a paginated list of GuildRole objects.

Create Guild Role

POST /guild.role.create
FIELDTYPEDESCRIPTION
guild_idstringguild id
dataGuildRolerole data

Create a guild role. Returns a GuildRole object.

Update Guild Role

POST /guild.role.update
FIELDTYPEDESCRIPTION
guild_idstringguild id
role_idstringrole id
dataGuildRolerole data

Update a guild role.

Delete Guild Role

POST /guild.role.delete
FIELDTYPEDESCRIPTION
guild_idstringguild id
role_idstringrole id

Delete a guild role.

Events

guild-role-created

Triggered when a guild role is created. Required resources: guild, role.

guild-role-updated

Triggered when a guild role is updated. Required resources: guild, role.

guild-role-deleted

Triggered when a guild role is deleted. Required resources: guild, role.