Skip to content

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

nullable

icon: string

The Team's icon hash Source

ownerId

nullable

ownerId: Snowflake

The Team's owner id Source

members

members: Collection<Snowflake, TeamMember>

The Team's members Source

owner

readonly · nullable

owner: TeamMember

The owner of this team Source

createdTimestamp

readonly

createdTimestamp: number

The timestamp the team was created at Source

createdAt

readonly

createdAt: Date

The time the team was created at Source

client

readonly

client: Client

The client that instantiated this Source

Methods

iconURL

iconURL(options?: StaticImageURLOptions): string

A link to the team's icon. Parameters

NameTypeDescription
options?StaticImageURLOptionsOptions 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}`);

Source

Unofficial software. Not affiliated with or supported by Discord.