Пример #1
0
        public async Task SubReddit(string subreddit)
        {
            var channel = (ITextChannel)Context.Channel;

            var subReddit = await Social.GetSubRedditAsync(subreddit).ConfigureAwait(false);

            await
            EmbedExtensions.FromMessage("https://reddit.com/" + subreddit, subReddit.Data.Posts.PaginatePosts(channel, 25)[0], Context)
            .WithColor(Color.Blue)
            .QueueMessageAsync(Context).ConfigureAwait(false);
        }