fix thx to kong
This commit is contained in:
parent
d88aa3d4c1
commit
f32144bd28
@ -94,7 +94,7 @@ namespace NadekoBot.Modules.Searches
|
|||||||
text = text?.Trim();
|
text = text?.Trim();
|
||||||
if (string.IsNullOrWhiteSpace(text))
|
if (string.IsNullOrWhiteSpace(text))
|
||||||
throw new ArgumentException();
|
throw new ArgumentException();
|
||||||
return await GoogleTranslator.Instance.Translate(text, from, to).ConfigureAwait(false);
|
return (await GoogleTranslator.Instance.Translate(text, from, to).ConfigureAwait(false)).SanitizeMentions();
|
||||||
}
|
}
|
||||||
|
|
||||||
public enum AutoDeleteAutoTranslate
|
public enum AutoDeleteAutoTranslate
|
||||||
|
Loading…
Reference in New Issue
Block a user