TeamMember

export class TeamMember extends Base
export class TeamMember extends Base
Represents a Client OAuth2 Application Team Member.

Extends

Base
Readonly
client:Client<true>
The client that instantiated this
Inherited from Base
Readonly
The Team Member's id
The permissions this Team Member has with regard to the team
Deprecated
permissions:string[]
Use role instead.
Deprecated
The permissions this Team Member has with regard to the team
The role of this Team Member
team:Team
The Team this member is part of
user:User
The user for this Team Member
toJSON(...props):unknown
NameTypeOptionalDescription
...propsRecord<string, boolean | string>[]NoNone
Inherited from Base
toString():UserMention
When concatenated with a string, this automatically returns the team member's mention instead of the TeamMember object.
Example
// Logs: Team Member's mention: <@123456789012345678>
console.log(`Team Member's mention: ${teamMember}`);
// Logs: Team Member's mention: <@123456789012345678>
console.log(`Team Member's mention: ${teamMember}`);
valueOf():string