| @@ -4,14 +4,16 @@ using Newtonsoft.Json; | |||||
| namespace Discord.Rest | namespace Discord.Rest | ||||
| { | { | ||||
| /// <summary> | /// <summary> | ||||
| /// Responsible for formatting certain entities as json string, to reuse later on. | |||||
| /// Responsible for formatting certain entities as Json <see langword="string"/>, to reuse later on. | |||||
| /// </summary> | /// </summary> | ||||
| public static class StringExtensions | public static class StringExtensions | ||||
| { | { | ||||
| /// <summary> | /// <summary> | ||||
| /// Gets a Json formatted <see langword="string"/> from an <see cref="EmbedBuilder"/> to reuse. | |||||
| /// See <see cref="EmbedBuilder.TryParse(string, out EmbedBuilder)"/> to parse Json back into embeds. | |||||
| /// Gets a Json formatted <see langword="string"/> from an <see cref="EmbedBuilder"/>. | |||||
| /// </summary> | /// </summary> | ||||
| /// <remarks> | |||||
| /// See <see cref="EmbedBuilder.TryParse(string, out EmbedBuilder)"/> to parse Json back into embed. | |||||
| /// </remarks> | |||||
| /// <param name="builder">The builder to format as Json <see langword="string"/>.</param> | /// <param name="builder">The builder to format as Json <see langword="string"/>.</param> | ||||
| /// <param name="formatting">The formatting in which the Json will be returned.</param> | /// <param name="formatting">The formatting in which the Json will be returned.</param> | ||||
| /// <returns>A Json <see langword="string"/> containing the data from the <paramref name="builder"/>.</returns> | /// <returns>A Json <see langword="string"/> containing the data from the <paramref name="builder"/>.</returns> | ||||
| @@ -19,9 +21,11 @@ namespace Discord.Rest | |||||
| => ToJsonString(builder.Build(), formatting); | => ToJsonString(builder.Build(), formatting); | ||||
| /// <summary> | /// <summary> | ||||
| /// Gets a Json formatted <see langword="string"/> from an <see cref="Embed"/> to reuse. | |||||
| /// See <see cref="EmbedBuilder.TryParse(string, out EmbedBuilder)"/> to parse Json back into embed. | |||||
| /// Gets a Json formatted <see langword="string"/> from an <see cref="Embed"/>. | |||||
| /// </summary> | /// </summary> | ||||
| /// <remarks> | |||||
| /// See <see cref="EmbedBuilder.TryParse(string, out EmbedBuilder)"/> to parse Json back into embed. | |||||
| /// </remarks> | |||||
| /// <param name="embed">The embed to format as Json <see langword="string"/>.</param> | /// <param name="embed">The embed to format as Json <see langword="string"/>.</param> | ||||
| /// <param name="formatting">The formatting in which the Json will be returned.</param> | /// <param name="formatting">The formatting in which the Json will be returned.</param> | ||||
| /// <returns>A Json <see langword="string"/> containing the data from the <paramref name="builder"/>.</returns> | /// <returns>A Json <see langword="string"/> containing the data from the <paramref name="builder"/>.</returns> | ||||