Skip to content

Guild Member

Definitions

GuildMember

FIELDTYPEDESCRIPTION
userUser?user object
nickstring?user's nickname in the guild
avatarstring?user's avatar in the guild
joined_atnumber?join time

API

Get Guild Member

POST /guild.member.get
FIELDTYPEDESCRIPTION
guild_idstringguild id
user_idstringuser id

Get guild member information. Returns a GuildMember object.

Get Guild Member List

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

Get all the members in a guild. Returns a paginated list of GuildMember objects.

Kick Guild Member

POST /guild.member.kick
FIELDTYPEDESCRIPTION
guild_idstringguild id
user_idstringuser id
permanentboolean?whether to permanently ban the user (preventing rejoin)

Kick a user from the guild.

Mute Guild Member experimental

POST /guild.member.mute
FIELDTYPEDESCRIPTION
guild_idstringguild id
user_idstringuser id
durationnumbermute duration (in milliseconds)

Mute a user. If the duration is set to 0, it will unmute the user.

Approve Guild Member Request

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

Handle a guild join request.

Events

guild-member-added

Triggered when a guild member is added. Required resources: guild, member, user.

guild-member-updated

Triggered when guild member information is updated. Required resources: guild, member, user.

guild-member-removed

Triggered when a guild member is removed. Required resources: guild, member, user.

guild-member-request

Triggered when a new guild join request is received. Required resources: guild, member, user.