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
jsonModelJsonUserPrimaryGuild
Properties
BadgeHash
The server tag badge hash.
public string? BadgeHash { get; }
Property Value
HasBadge
Whether the primary guild has a set server tag badge.
public bool HasBadge { get; }
Property Value
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
Tag
The text of the user's server tag. Limited to 4 characters.
public string? Tag { get; }
Property Value
Methods
GetBadgeUrl(ImageFormat)
Gets the ImageUrl of the server tag badge.
public ImageUrl? GetBadgeUrl(ImageFormat format)
Parameters
formatImageFormatThe format of the returned ImageUrl.