Table of Contents

Method ToDiscordObject

Namespace
DisCatSharp.Net.Serialization
Assembly
DisCatSharp.dll

ToDiscordObject<T>(JToken)

Converts this token into an object, passing any properties through extra Newtonsoft.Json.JsonConverters if needed.

public static T ToDiscordObject<T>(this JToken token)

Parameters

token JToken

The token to convert

Returns

T

The converted token

Type Parameters

T

Type to convert to