public static async Task ReplyWithLegalizedSetAsync(this ISocketMessageChannel channel, string content) { content = ReusableActions.StripCodeBlock(content); var set = new ShowdownSet(content); var sav = AutoLegalityWrapper.GetTrainerInfo(set.Format); await channel.ReplyWithLegalizedSetAsync(sav, set).ConfigureAwait(false); }
public static async Task ReplyWithLegalizedSetAsync(this ISocketMessageChannel channel, string content, int gen) { content = ReusableActions.StripCodeBlock(content); var set = new ShowdownSet(content); var sav = TrainerSettings.GetSavedTrainerData(gen); await channel.ReplyWithLegalizedSetAsync(sav, set).ConfigureAwait(false); }