Table of Contents

Class Card

Namespace
Kook
Assembly
Kook.Net.Core.dll

Represents a card object seen in an IUserMessage.

public class Card : ICard, IEquatable<Card>, IEquatable<ICard>
Inheritance
Card
Implements
Inherited Members
Extension Methods

Properties

Color

Gets the color of this embed.

public Color? Color { get; }

Property Value

Color?

A Color represents a color present on the side of the card, or null if none is set.

ModuleCount

Gets the number of the modules in this card.

public int ModuleCount { get; }

Property Value

int

An int value that represents how many modules are in this card.

Modules

Gets the modules in this card.

public ImmutableArray<IModule> Modules { get; }

Property Value

ImmutableArray<IModule>

An array of the modules of the card.

Size

Gets the size of this card.

public CardSize Size { get; }

Property Value

CardSize

A CardSize value that represents the size of this card.

Theme

Gets the theme of this card.

public CardTheme Theme { get; }

Property Value

CardTheme

A CardTheme value that represents the theme of this card.

Type

Gets the type of the card.

public CardType Type { get; }

Property Value

CardType

A CardType value that represents the type of the card.

Methods

Equals(Card?)

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

public bool Equals(Card? card)

Parameters

card Card

The Card to compare with the current Card.

Returns

bool

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

Equals(object?)

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

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current Card.

Returns

bool

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

Remarks

If the object passes is an Card, Equals(Card?) will be called to compare the 2 instances.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

Operators

operator ==(Card, Card)

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

public static bool operator ==(Card left, Card right)

Parameters

left Card
right Card

Returns

bool

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

operator !=(Card, Card)

Determines whether the specified Card is not equal to the current Card.

public static bool operator !=(Card left, Card right)

Parameters

left Card
right Card

Returns

bool

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