/// <summary>
 /// Returns a MemoryStream for your own drake meme.
 /// </summary>
 /// <returns></returns>
 public static MemoryStream Drake(string topText, string bottomText)
 {
     return(RequestFunctions.ImageRequest($"drake?top={topText}&bottom={bottomText}"));
 }
 /// <summary>
 /// Returns a MemoryStream for a gradient image of a color.
 /// </summary>
 /// <returns></returns>
 public static MemoryStream ColorImageGradient(string hex)
 {
     return(RequestFunctions.ImageRequest($"color/image/gradient/{hex}"));
 }
 /// <summary>
 /// Returns a MemoryStream for a fake Google 'did you mean' image.
 /// </summary>
 /// <returns></returns>
 public static MemoryStream DidYouMean(string topText, string bottomText)
 {
     return(RequestFunctions.ImageRequest($"didyoumean?top={topText}&bottom={bottomText}"));
 }
Esempio n. 4
0
 /// <summary>
 /// Returns a MemoryStream for your custom Minecraft-style 'achievement unlocked' popup.
 /// </summary>
 public async Task <MemoryStream> Achievement(string text, Icon icon)
 => await RequestFunctions.ImageRequest($"achievement?text={text}&icon={(icon == Icon.Random ? new Random().Next(1, 45) : (int)icon)}", Token);