- Fixed counting parameters which have formats in response strings

- Almost finished porting localized string keys as methods
- Compiles
This commit is contained in:
Kwoth
2021-07-27 13:07:23 +02:00
parent 0115d35247
commit 4484732f5d
29 changed files with 94 additions and 95 deletions

View File

@@ -264,16 +264,19 @@ namespace NadekoBot.Modules.Xp.Services
{
var chan = await x.User.GetOrCreateDMChannelAsync();
if (chan != null)
await chan.SendConfirmAsync(_eb, _strings.GetText(strs.level_up_dm,
x.Guild.Id,
x.User.Mention, Format.Bold(x.Level.ToString()),
Format.Bold(x.Guild.ToString() ?? "-")));
await chan.SendConfirmAsync(_eb,
_strings.GetText(strs.level_up_dm(
x.User.Mention, Format.Bold(x.Level.ToString()),
Format.Bold(x.Guild.ToString() ?? "-")),
x.Guild.Id));
}
else if (x.MessageChannel != null) // channel
{
await x.MessageChannel.SendConfirmAsync(_eb, _strings.GetText(strs.level_up_channel,
x.Guild.Id,
x.User.Mention, Format.Bold(x.Level.ToString())));
await x.MessageChannel.SendConfirmAsync(_eb,
_strings.GetText(strs.level_up_channel(
x.User.Mention,
Format.Bold(x.Level.ToString())),
x.Guild.Id));
}
}
else
@@ -288,9 +291,11 @@ namespace NadekoBot.Modules.Xp.Services
chan = x.MessageChannel;
}
await chan.SendConfirmAsync(_eb, _strings.GetText(strs.level_up_global,
x.Guild.Id,
x.User.Mention, Format.Bold(x.Level.ToString())));
await chan.SendConfirmAsync(_eb,
_strings.GetText(strs.level_up_global(
x.User.Mention,
Format.Bold(x.Level.ToString())),
x.Guild.Id));
}
}));
}