Class: TeamMember

TeamMember

Represents a Client OAuth2 Application Team Member.

Constructor

new TeamMember()

Source:

Extends

Members

(readonly) client :Client

The client that instantiated this
Type:
Overrides:
Source:

(readonly) id :Snowflake

The ID of the Team Member
Type:
Source:

membershipState :MembershipStates

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

permissions :Array.<string>

The permissions this Team Member has with regard to the team
Type:
  • Array.<string>
Source:

team :Team

The Team this member is part of
Type:
Source:

user :User

The user for this Team Member
Type:
Source:

Methods

toString() → {string}

When concatenated with a string, this automatically returns the team members's mention instead of the TeamMember object.
Source:
Returns:
Type
string
Example
// Logs: Team Member's mention: <@123456789012345678>
console.log(`Team Member's mention: ${teamMember}`);