public async Task GifAsync() { GiphyDotNet.Model.Results.GiphyRandomResult gif = await _giphy.RandomGif(new RandomParameter()); EmbedBuilder embed = new EmbedBuilder() .WithImageUrl(gif.Data.ImageUrl); await ReplyEmbedAsync(embed); }
public async Task <RandomImageData> GetRandomGifAsync() { if (this.IsDisabled()) { return(null); } RandomImageResult res = await this.giphy.RandomGif(new RandomParameter()).ConfigureAwait(false); return(res?.Data); }