Remove all in-command usages of GetDict for translations

This commit is contained in:
runebaas 2019-05-12 00:44:25 +02:00
parent 0f0c0684c6
commit 67add36e51
No known key found for this signature in database
GPG key ID: 2677AF508D0300D6
3 changed files with 9 additions and 9 deletions

View file

@ -24,10 +24,10 @@ namespace Geekbot.net.Commands.Utils
{
try
{
var transDict = await _translation.GetDict(Context);
var transContext = await _translation.GetGuildContext(Context);
var choicesArray = choices.Split(';');
var choice = new Random().Next(choicesArray.Length);
await ReplyAsync(string.Format(transDict["Choice"], choicesArray[choice]));
await ReplyAsync(transContext.GetString("Choice", choicesArray[choice]));
}
catch (Exception e)
{