예제 #1
0
        public async Task GetDogPicAsync()
        {
            string pictureURL = await(dogService?.GetDogPictureUrlAsync()).ConfigureAwait(false);

            if (pictureURL.IsEmpty())
            {
                _ = await ReplyAsync("Could not get a doggo pic :(").ConfigureAwait(false);

                return;
            }
            var builder = new EmbedBuilder().WithImageUrl(pictureURL);

            _ = await ReplyAsync(embed : builder.Build()).ConfigureAwait(false);
        }