コード例 #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
ファイル: Audio.cs プロジェクト: PassiveModding/Raven
        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
ファイル: NSFW.cs プロジェクト: PassiveModding/Raven
        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
ファイル: Info.cs プロジェクト: eldrago4/Baburao-Apte
        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);
            }
        }