Table of Contents

Class UserTag

Namespace
Kook
Assembly
Kook.Net.Core.dll

Representing a tag an IUser can have.

public class UserTag : IEquatable<UserTag>
Inheritance
UserTag
Implements
Inherited Members

Properties

BackgroundColor

Gets the background color of the tag given to user.

public AlphaColor BackgroundColor { get; }

Property Value

AlphaColor

A AlphaColor struct representing the background color of this tag.

Color

Gets the color of the tag given to user.

public Color Color { get; }

Property Value

Color

A Color struct representing the color of this tag.

Text

Gets the text of the tag given to user.

public string Text { get; }

Property Value

string

A string representing the text of this tag.

Methods

Create(Color, AlphaColor, string)

Initializes a new instance of the UserTag class.

public static UserTag Create(Color color, AlphaColor backgroundColor, string text)

Parameters

color Color

The color of the tag given to user.

backgroundColor AlphaColor

The background color of the tag given to user.

text string

The text of the tag given to user.

Returns

UserTag

A UserTag representing the given parameters.

Equals(UserTag?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(UserTag? other)

Parameters

other UserTag

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.