Use the correct unit when listing messages in a season
This commit is contained in:
parent
d477a4b056
commit
e495e2df17
1 changed files with 7 additions and 4 deletions
|
@ -107,9 +107,12 @@ namespace Geekbot.Bot.Commands.User.Ranking
|
|||
? $"**{user.Username}#{user.Discriminator}**"
|
||||
: $"**{user.Id}**");
|
||||
|
||||
replyBuilder.Append(type == HighscoreTypes.messages
|
||||
? $" - {value} {type} - {Math.Round((double) (100 * value) / guildMessages, 2)}%\n"
|
||||
: $" - {value} {type}\n");
|
||||
replyBuilder.Append(type switch
|
||||
{
|
||||
HighscoreTypes.messages => $" - {value} {HighscoreTypes.messages} - {Math.Round((double) (100 * value) / guildMessages, 2)}%\n",
|
||||
HighscoreTypes.seasons => $" - {value} {HighscoreTypes.messages}\n",
|
||||
_ => $" - {value} {type}\n"
|
||||
});
|
||||
|
||||
highscorePlace++;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue