Esempio n. 1
0
        public async Task ClubStats(string teamName, string league)
        {
            //var options = new RequestOptions { Timeout = 2 };
            //await Context.Message.DeleteAsync(options);

            EmbedBuilder embed = new EmbedBuilder();

            if (Context.Channel.Id == Convert.ToUInt64(Environment.GetEnvironmentVariable("stats_channel")))
            {
                TeamInfo.ClubInfo(league, teamName, ref embed);
                await ReplyAsync("", embed : embed.Build());
            }
            else
            {
                await ReplyAsync(
                    $"{Context.User.Mention} you are using the command in the wrong channel, try again in " +
                    $"{MentionUtils.MentionChannel(Convert.ToUInt64(Environment.GetEnvironmentVariable("stats_channel")))}");
            }
        }