From 9a4bb7bff94c6eeae48245a7201eccb8287eaae4 Mon Sep 17 00:00:00 2001 From: Alan Beatty Date: Tue, 21 Dec 2021 01:20:52 +0000 Subject: [PATCH] ToLower for `.trans` language parameters --- src/NadekoBot/Modules/Searches/TranslatorCommands.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NadekoBot/Modules/Searches/TranslatorCommands.cs b/src/NadekoBot/Modules/Searches/TranslatorCommands.cs index 737a674fe..d184dac0e 100644 --- a/src/NadekoBot/Modules/Searches/TranslatorCommands.cs +++ b/src/NadekoBot/Modules/Searches/TranslatorCommands.cs @@ -17,7 +17,7 @@ namespace NadekoBot.Modules.Searches try { await ctx.Channel.TriggerTypingAsync().ConfigureAwait(false); - var translation = await _service.Translate(from, to, text).ConfigureAwait(false); + var translation = await _service.Translate(from.ToLower(), to.ToLower(), text).ConfigureAwait(false); var embed = _eb.Create(ctx) .WithOkColor()