ToLower for .trans language parameters

This commit is contained in:
Alan Beatty
2021-12-21 01:20:52 +00:00
committed by Kwoth
parent ab5450a125
commit 9a4bb7bff9

View File

@@ -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()