Skip to content

Defined in: sdk/js/src/member.ts:14

A member’s roles and the calls that change them (the bot needs MANAGE_ROLES).

new MemberRoles(member): MemberRoles

Defined in: sdk/js/src/member.ts:15

Member

MemberRoles

get ids(): readonly string[]

Defined in: sdk/js/src/member.ts:18

The member’s role ids, as the bot last saw them.

readonly string[]

add(roleId): void

Defined in: sdk/js/src/member.ts:27

Gives the member a role below the bot’s own.

string

void


has(roleId): boolean

Defined in: sdk/js/src/member.ts:22

string

boolean


remove(roleId): void

Defined in: sdk/js/src/member.ts:32

Takes a role away.

string

void