Class Tag<T>
- Namespace
- Kook
- Assembly
- Kook.Net.Core.dll
Represents a tag found in IMessage.
public class Tag<T> : ITag
Type Parameters
T
- Inheritance
-
Tag<T>
- Implements
- Inherited Members
Properties
Index
Gets position of the tag in the message.
public int Index { get; }
Property Value
Key
Gets the key of the tag.
public dynamic Key { get; }
Property Value
- dynamic
Length
Gets the length of the tag.
public int Length { get; }
Property Value
Type
Gets the type of the tag.
public TagType Type { get; }
Property Value
Value
Gets the value of the tag.
public T? Value { get; }
Property Value
- T
Remarks
When Type is HereMention, this property returns the same entity as EveryoneRole for convenience. because there is no actual entities representing a group of online users.
Methods
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.