Skip to content

TeamMember

classe · Source

Represents a Client OAuth2 Application Team Member.

Extends: Base

Properties

team

team: Team

The Team this member is part of Source

permissions

deprecated

permissions: Array<string>

The permissions this Team Member has with regard to the team Source

role

role: TeamMemberRole

The role of this Team Member Source

membershipState

membershipState: MembershipState

The permissions this Team Member has with regard to the team Source

user

user: User

The user for this Team Member Source

id

readonly

id: Snowflake

The Team Member's id Source

client

readonly

client: Client

The client that instantiated this Source

Methods

toString

toString(): string

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

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

Source

Unofficial software. Not affiliated with or supported by Discord.