Table of Contents

Class Team

Namespace
NetCord
Assembly
NetCord.dll

Represents a group of developers / Discord users who share access to an application's configuration.

public class Team : Entity, IEntity, ISpanFormattable, IFormattable, IEquatable<Entity>, IJsonModel<JsonTeam>
Inheritance
Team
Implements
Inherited Members

Constructors

Team(JsonTeam, RestClient)

Represents a group of developers / Discord users who share access to an application's configuration.

public Team(JsonTeam jsonModel, RestClient client)

Parameters

jsonModel JsonTeam
client RestClient

Properties

IconHash

The team's icon image hash.

public string? IconHash { get; }

Property Value

string

Id

The team's unique ID.

public override ulong Id { get; }

Property Value

ulong

Name

The team's name.

public string Name { get; }

Property Value

string

OwnerId

The ID corresponding to the team's owner.

public ulong OwnerId { get; }

Property Value

ulong

Users

A list of the team's current members.

public IReadOnlyList<TeamUser> Users { get; }

Property Value

IReadOnlyList<TeamUser>

Methods

GetIconUrl(ImageFormat)

Gets the ImageUrl of the team's icon.

public ImageUrl? GetIconUrl(ImageFormat format)

Parameters

format ImageFormat

The format of the returned ImageUrl.

Returns

ImageUrl

An ImageUrl pointing to the team's icon. If the team does not have one set, returns null.