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
jsonModelJsonTeamclientRestClient
Properties
IconHash
The team's icon image hash.
public string? IconHash { get; }
Property Value
Id
The team's unique ID.
public override ulong Id { get; }
Property Value
Name
The team's name.
public string Name { get; }
Property Value
OwnerId
The ID corresponding to the team's owner.
public ulong OwnerId { get; }
Property Value
Users
A list of the team's current members.
public IReadOnlyList<TeamUser> Users { get; }
Property Value
Methods
GetIconUrl(ImageFormat)
Gets the ImageUrl of the team's icon.
public ImageUrl? GetIconUrl(ImageFormat format)
Parameters
formatImageFormatThe format of the returned ImageUrl.