Team

class Team(val data: TeamData, val kord: Kord, val supplier: EntitySupplier = kord.defaultSupplier) : KordEntity, Strategizable(source)

A Discord developer team which can own applications.

Constructors

Link copied to clipboard
constructor(data: TeamData, kord: Kord, supplier: EntitySupplier = kord.defaultSupplier)

Properties

Link copied to clipboard
Link copied to clipboard
val icon: Asset?

This team's icon.

Link copied to clipboard

The hash of this team's icon.

Link copied to clipboard
open override val id: Snowflake

The unique identifier of this entity.

Link copied to clipboard
open override val kord: Kord

The kord instance that created this object.

Link copied to clipboard

A collection of all members of this team.

Link copied to clipboard

Name of the team.

Link copied to clipboard

The ID of the user that owns the team.

Link copied to clipboard
open override val supplier: EntitySupplier

The supplier used to request entities.

Functions

Link copied to clipboard
open operator override fun compareTo(other: Entity): Int

Compares entities on id.

Link copied to clipboard
suspend fun getUser(): User

Requests to get the team owner through the supplier.

Link copied to clipboard
suspend fun getUserOrNUll(): User?

Requests to get the team owner through the supplier, returns null if the User isn't present.

Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
open override fun withStrategy(strategy: EntitySupplyStrategy<*>): Team

Returns a copy of this class with a new supplier provided by the strategy.