Example #1
0
        public async Task Fcinfo()
        {
            dynamic info = null;

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

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

            if (info != null)
            {
                embed = await EmbedHandler.CreateFcInfoEmbed(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("Currently in service of:", false, embed);
            }
        }