forked from EllieBotDevs/elliebot
.winlb looks better when there are no items
This commit is contained in:
parent
d743bd563b
commit
688c1572f8
1 changed files with 7 additions and 1 deletions
|
@ -172,11 +172,17 @@ public partial class Gambling
|
||||||
var eb = CreateEmbed()
|
var eb = CreateEmbed()
|
||||||
.WithOkColor();
|
.WithOkColor();
|
||||||
|
|
||||||
|
if (items.Count == 0)
|
||||||
|
{
|
||||||
|
eb.WithDescription(GetText(strs.empty_page));
|
||||||
|
return eb;
|
||||||
|
}
|
||||||
|
|
||||||
for (var i = 0; i < items.Count; i++)
|
for (var i = 0; i < items.Count; i++)
|
||||||
{
|
{
|
||||||
var item = items[i];
|
var item = items[i];
|
||||||
eb.AddField($"#{item.Rank} {item.User}",
|
eb.AddField($"#{item.Rank} {item.User}",
|
||||||
$"[{item.Game}]{N(item.MaxWin)}");
|
$"{N(item.MaxWin)}\n`{item.Game.ToString().ToLower()}`");
|
||||||
}
|
}
|
||||||
|
|
||||||
return eb;
|
return eb;
|
||||||
|
|
Reference in a new issue