class Team
extends
Baseexport class Team extends Base
Represents a Client OAuth2 Application Team.
readonlyDate createdAt :
The time the team was created at
readonlynumber createdTimestamp :
The timestamp the team was created at
Snowflake id :
The Team's id
Collection<Snowflake, TeamMember> members :
The Team's members
string name :
The name of the Team
readonlyTeamMember | null owner :
The owner of this team
iconURLoptions?: ImageURLOptions) : string | null (
options?: ImageURLOptions
A link to the team's icon.
toJSONunknown () :
toStringstring () :
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}`);