Class StringExtensions
Responsible for formatting certain entities as Json string, to reuse later on.
public static class StringExtensions
- Inheritance
-
StringExtensions
- Inherited Members
Methods
ToJsonString(Embed, Formatting)
public static string ToJsonString(this Embed embed, Formatting formatting = Formatting.Indented)
Parameters
embed
EmbedThe embed to format as Json string.
formatting
FormattingThe formatting in which the Json will be returned.
Returns
Remarks
See TryParse(string, out EmbedBuilder) to parse Json back into embed.
ToJsonString(EmbedBuilder, Formatting)
Gets a Json formatted string from an EmbedBuilder.
public static string ToJsonString(this EmbedBuilder builder, Formatting formatting = Formatting.Indented)
Parameters
builder
EmbedBuilderThe builder to format as Json string.
formatting
FormattingThe formatting in which the Json will be returned.
Returns
Remarks
See TryParse(string, out EmbedBuilder) to parse Json back into embed.