class Team

extends

Base
export class Team extends Base

Represents a Client OAuth2 Application Team.

readonly
client : Client<true>

The client that instantiated this

Inherited from: Base

readonly
createdAt : Date

The time the team was created at

readonly
createdTimestamp : number

The timestamp the team was created at

icon : string | null

The Team's icon hash

The Team's id

The Team's members

name : string

The name of the Team

readonly
owner : TeamMember | null

The owner of this team

ownerId : Snowflake | null

The Team's owner id

iconURL(
options?: ImageURLOptions
) : string | null

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}`);

valueOf() : string

Inherited from: Base