Preview environment

class TeamMember

extends

Base
export class TeamMember extends Base

Represents a Client OAuth2 Application Team Member.

readonly
client : Client<true>

The client that instantiated this

Inherited from: Base

readonly
id : Snowflake

The Team Member's id

membershipState : TeamMemberMembershipState

The permissions this Team Member has with regard to the team

deprecated
permissions : string[]

The permissions this Team Member has with regard to the team

The role of this Team Member

team : Team

The Team this member is part of

user : User

The user for this Team Member

toJSON(
...props: Record<string, boolean | string>[]
) : unknown

Inherited from: Base

toString() : UserMention

When concatenated with a string, this automatically returns the team member's mention instead of the TeamMember object.

Examples:
// Logs: Team Member's mention: <@123456789012345678>
console.log(`Team Member's mention: ${teamMember}`);

valueOf() : string

Inherited from: Base