class TeamMember
extends
Baseexport class TeamMember extends BaseRepresents a Client OAuth2 Application Team Member.
readonlyid : Snowflake
The Team Member's id
membershipState : TeamMemberMembershipState
The permissions this Team Member has with regard to the team
deprecatedpermissions : string[]
Use role instead.
Deprecated
The permissions this Team Member has with regard to the team
role : TeamMemberRole
The role of this Team Member
team : Team
The Team this member is part of
user : User
The user for this Team Member
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}`);