Struct NotImplementedEmbed
- Namespace
- Kook
- Assembly
- Kook.Net.Core.dll
Represents a unimplemented embed.
public struct NotImplementedEmbed : IEmbed
- Implements
- Inherited Members
Properties
JsonNode
Gets the raw JSON of the embed.
public readonly JsonNode JsonNode { get; }
Property Value
- JsonNode
A JsonNode representing the raw JSON of the embed.
RawType
Gets the type of the embed.
public readonly string RawType { get; }
Property Value
- string
A
string
representing the type of the embed.
Remarks
This value originally came from the type
field of the JsonNode.
Type
Gets the type of this embed.
public EmbedType Type { get; }
Property Value
Methods
Resolve<T>(Func<NotImplementedEmbed, T>)
Resolves the embed to a concrete type via delegate.
public T Resolve<T>(Func<NotImplementedEmbed, T> resolvingFunc) where T : IEmbed
Parameters
resolvingFunc
Func<NotImplementedEmbed, T>The resolving function to use when resolves the embed.
Returns
- T
A
T
representing the resolved embed.
Type Parameters
T
The concrete type to deserialize the embed to.
Resolve<T>(JsonSerializerOptions?)
Resolves the embed to a concrete type via JSON deserialization.
public T? Resolve<T>(JsonSerializerOptions? options = null) where T : IEmbed
Parameters
options
JsonSerializerOptionsThe options to use when deserializing the embed.
Returns
- T
A
T
representing the resolved embed.
Type Parameters
T
The concrete type to deserialize the embed to.