コード例 #1
0
ファイル: XivApiModule.cs プロジェクト: tomvdbroecke/Odin-Bot
        public async Task Fcmembers()
        {
            dynamic info = null;

            // Attempt an API request for FC info
            info = await _xivApiService.FCRequest(true);

            // If FC info was succesfully grabbed
            Embed embed = null;

            if (info != null)
            {
                embed = await EmbedHandler.CreateFcMembersInfoEmbed(info);
            }

            // If embed was null, throw an error
            if (embed == null)
            {
                await ReplyAsync(Config.pre.error + " Could not retrieve FFXIV API information.");
            }
            else
            {
                await ReplyAsync("", false, embed);
            }
        }