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
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
Theme
Gets the theme of this card.
public CardTheme Theme { get; }
Property Value
Type
Gets the type of the card.
public CardType Type { get; }
Property Value
Methods
Equals(Card?)
public bool Equals(Card? card)
Parameters
Returns
Equals(object?)
Determines whether the specified object is equal to the current Card.
public override bool Equals(object? obj)
Parameters
Returns
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)
public static bool operator ==(Card left, Card right)
Parameters
Returns
operator !=(Card, Card)
public static bool operator !=(Card left, Card right)