Example #1
0
 /// <summary>
 /// Converts an existing <see cref="RestGuildEmbed"/> to an abstracted <see cref="IRestGuildEmbed"/> value.
 /// </summary>
 /// <param name="restGuildEmbed">The existing <see cref="RestGuildEmbed"/> to be abstracted.</param>
 /// <returns>An <see cref="IRestGuildEmbed"/> that abstracts <paramref name="restGuildEmbed"/>.</returns>
 public static IRestGuildEmbed Abstract(this RestGuildEmbed restGuildEmbed)
 => new RestGuildEmbedAbstraction(restGuildEmbed);
Example #2
0
 /// <summary>
 /// Constructs a new <see cref="RestGuildEmbedAbstraction"/> around an existing <see cref="RestGuildEmbed"/>.
 /// </summary>
 /// <param name="restGuildEmbed">The existing <see cref="RestGuildEmbed"/> to be abstracted.</param>
 public RestGuildEmbedAbstraction(RestGuildEmbed restGuildEmbed)
 {
     _restGuildEmbed = restGuildEmbed;
 }