public async Task ColossoTrain() { var embed = new EmbedBuilder(); embed.WithColor(Colors.Get("Iodem")); Matchup m = GetRandomMatchup(); embed.WithAuthor(GetTitle(Context.User, m.Enemy)); embed.WithDescription(GetText(Context.User, m)); lastMessageWasNuts = false; if (m.Result.Text.Contains("nuts")) { lastMessageWasNuts = true; } await Context.Channel.SendMessageAsync("", false, embed.Build()); if (m.Result.IsWin) { ServerGames.UserWonColosso((SocketGuildUser)Context.User, (SocketTextChannel)Context.Channel); } else { ServerGames.UserLostColosso((SocketGuildUser)Context.User, (SocketTextChannel)Context.Channel); } }
public static Embed ColossoTrain(SocketGuildUser user, IMessageChannel channel) { var embed = new EmbedBuilder(); embed.WithColor(Colors.Get("Iodem")); Matchup m = GetRandomMatchup(); embed.WithAuthor(GetTitle(user, m.Enemy)); embed.WithDescription(GetText(user, m)); if (m.Result.IsWin) { ServerGames.UserWonColosso(user, channel); } else { ServerGames.UserLostColosso(user, channel); } return(embed.Build()); }