Table of Contents

Class EmbedBuilderUtils

Namespace
Discord.Rest
Assembly
Discord.Net.Rest.dll
public static class EmbedBuilderUtils
Inheritance
EmbedBuilderUtils
Inherited Members

Methods

Parse(string)

Parses a string into an EmbedBuilder.

public static EmbedBuilder Parse(string json)

Parameters

json string

The json string to parse.

Returns

EmbedBuilder

An EmbedBuilder with populated values from the passed json.

Exceptions

InvalidOperationException

Thrown if the string passed is not valid json.

TryParse(string, out EmbedBuilder)

Tries to parse a string into an EmbedBuilder.

public static bool TryParse(string json, out EmbedBuilder builder)

Parameters

json string

The json string to parse.

builder EmbedBuilder

The EmbedBuilder with populated values. An empty instance if method returns false.

Returns

bool

true if json was successfully parsed. false if not.