Class StringExtensions
Responsible for formatting certain entities as Json langword_csharp_string, to reuse later on.
Namespace: Discord.Rest
Assembly: Discord.Net.Rest.dll
Syntax
public static class StringExtensions : object
Methods
| Improve this Doc View SourceToJsonString(Embed, Formatting)
Gets a Json formatted langword_csharp_string from an Embed.
Declaration
public static string ToJsonString(this Embed embed, Formatting formatting = null)
Parameters
Type | Name | Description |
---|---|---|
Embed | embed | The embed to format as Json langword_csharp_string. |
Formatting | formatting | The formatting in which the Json will be returned. |
Returns
Type | Description |
---|---|
String | A Json langword_csharp_string containing the data from the |
Remarks
See
ToJsonString(EmbedBuilder, Formatting)
Gets a Json formatted langword_csharp_string from an EmbedBuilder.
Declaration
public static string ToJsonString(this EmbedBuilder builder, Formatting formatting = null)
Parameters
Type | Name | Description |
---|---|---|
EmbedBuilder | builder | The builder to format as Json langword_csharp_string. |
Formatting | formatting | The formatting in which the Json will be returned. |
Returns
Type | Description |
---|---|
String | A Json langword_csharp_string containing the data from the |
Remarks
See