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