Table of Contents

Class UserPrimaryGuild

Namespace
NetCord
Assembly
NetCord.dll
public class UserPrimaryGuild : IJsonModel<JsonUserPrimaryGuild>
Inheritance
UserPrimaryGuild
Implements
Inherited Members

Constructors

UserPrimaryGuild(JsonUserPrimaryGuild)

public UserPrimaryGuild(JsonUserPrimaryGuild jsonModel)

Parameters

jsonModel JsonUserPrimaryGuild

Properties

BadgeHash

The server tag badge hash.

public string? BadgeHash { get; }

Property Value

string

HasBadge

Whether the primary guild has a set server tag badge.

public bool HasBadge { get; }

Property Value

bool

IdentityEnabled

Whether the user is displaying the primary guild's server tag. This can be null if the system clears the identity, e.g. because the server no longer supports tags.

public bool? IdentityEnabled { get; }

Property Value

bool?

IdentityGuildId

The ID of the user's primary guild.

public ulong? IdentityGuildId { get; }

Property Value

ulong?

Tag

The text of the user's server tag. Limited to 4 characters.

public string? Tag { get; }

Property Value

string

Methods

GetBadgeUrl(ImageFormat)

Gets the ImageUrl of the server tag badge.

public ImageUrl? GetBadgeUrl(ImageFormat format)

Parameters

format ImageFormat

The format of the returned ImageUrl.

Returns

ImageUrl

An ImageUrl pointing to the server tag badge. If the server tag does not have one set, returns null.