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
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
id: Snowflake
The Team Member's id Source
client
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}`);