public async Task Test() { var embed = _defaultEmbedGenerator .GenerateNotFoundEmbed("TestModule", "TestCommand", "Title", "Command was not found!").Build(); await DefaultLogger.Logger(new LogMessage(LogSeverity.Error, "TestModule", "TestModule has crashed!", new DllNotFoundException())); await ReplyAsync("", embed : embed); }
public async Task GetTournamentInfoByName([Remainder] string name) { Embed response; name = _inputSanitizer.SmashggTournamentReplacement(name); var tournament = await _smashggClient.TournamentEndpoint.GetTournamentByNameAsync(name); if (tournament == null) { response = _defaultEmbedGenerator.GenerateNotFoundEmbed( "Smashgg", "Tournament", "Tournament has not been found!", "The tournament you were looking for has not been found").Build(); } else { response = _smashggEmbedGenerator.CreateTournamentEmbed(tournament).Build(); } await ReplyAsync(string.Empty, embed : response); }