class Team
extends
Baseexport class Team extends BaseRepresents a Client OAuth2 Application Team.
readonlycreatedAt : Date
The time the team was created at
readonlycreatedTimestamp : number
The timestamp the team was created at
id : Snowflake
The Team's id
members : Collection<Snowflake, TeamMember>
The Team's members
name : string
The name of the Team
readonlyowner : TeamMember | null
The owner of this team
iconURL(options?: ImageURLOptions) : string | null
options?: ImageURLOptions
A link to the team's icon.
toJSON() : unknown
toString() : string
When concatenated with a string, this automatically returns the Team's name instead of the Team object.
Examples:
// Logs: Team name: My Team
console.log(`Team name: ${team}`);