Team
classe · Source
Represents a Client OAuth2 Application Team.
Extends: Base
Properties
id
id: Snowflake
The Team's id Source
name
name: string
The name of the Team Source
icon
icon: string
The Team's icon hash Source
ownerId
ownerId: Snowflake
The Team's owner id Source
members
members: Collection<Snowflake, TeamMember>
The Team's members Source
owner
owner: TeamMember
The owner of this team Source
createdTimestamp
createdTimestamp: number
The timestamp the team was created at Source
createdAt
createdAt: Date
The time the team was created at Source
client
client: Client
The client that instantiated this Source
Methods
iconURL
iconURL(options?: StaticImageURLOptions): string
A link to the team's icon. Parameters
| Name | Type | Description |
|---|---|---|
options? | StaticImageURLOptions | Options for the Image URL Default: {}. |
Returns: stringSource
toString
toString(): string
When concatenated with a string, this automatically returns the Team's name instead of the Team object. Returns: string
js
// Logs: Team name: My Team
console.log(`Team name: ${team}`);