Пример #1
0
        public async Task HelpAsync()
        {
            var res = await HelpService.PagedHelpAsync(Context, true, new List <string>
            {
                "games"
            }, "This module contains fun games to play");

            if (res != null)
            {
                await PagedReplyAsync(res.ToCallBack().WithDefaultPagerCallbacks());
            }
            else
            {
                await ReplyAsync("N/A");
            }
        }
Пример #2
0
        public async Task HelpAsync()
        {
            var res = await HelpService.PagedHelpAsync(Context, true, new List <string>
            {
                "music"
            }, "This module handles music commands and setup.");

            if (res != null)
            {
                await PagedReplyAsync(res.ToCallBack().WithDefaultPagerCallbacks());
            }
            else
            {
                await ReplyAsync("N/A");
            }
        }
Пример #3
0
        public async Task HelpAsync()
        {
            var res = await HelpService.PagedHelpAsync(Context, true, new List <string>
            {
                "nsfw"
            });

            if (res != null)
            {
                await PagedReplyAsync(res.ToCallBack().WithDefaultPagerCallbacks());
            }
            else
            {
                await ReplyAsync("N/A");
            }
        }
Пример #4
0
        public virtual async Task GenerateHelpAsync(bool checkPreconditions = true)
        {
            try
            {
                var res = await HelpService.PagedHelpAsync(Context, checkPreconditions, null,
                                                           "You can react with the :1234: emote and type a page number to go directly to that page too,\n" +
                                                           "otherwise react with the arrows (◀ ▶) to change pages.\n");

                if (res != null)
                {
                    await PagedReplyAsync(res.ToCallBack().WithDefaultPagerCallbacks().WithJump());
                }
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }