$lb now shows the names of people in the server it's invoked in, if any.
This commit is contained in:
parent
ac26502d57
commit
718f0d4871
@ -148,13 +148,13 @@ namespace NadekoBot.Modules.Gambling
|
|||||||
await e.Channel.SendMessage(
|
await e.Channel.SendMessage(
|
||||||
richest.Aggregate(new StringBuilder(
|
richest.Aggregate(new StringBuilder(
|
||||||
$@"```xl
|
$@"```xl
|
||||||
┏━━━━━━━━━━━━━━━━━━━┳━━━━━━━┓
|
┏━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━┓
|
||||||
┃ Id ┃ $$$ ┃
|
┃ Id ┃ $$$ ┃
|
||||||
"),
|
"),
|
||||||
(cur, cs) => cur.AppendLine(
|
(cur, cs) => cur.AppendLine(
|
||||||
$@"┣━━━━━━━━━━━━━━━━━━━╋━━━━━━━┫
|
$@"┣━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━┫
|
||||||
┃{cs.UserId,-18} ┃ {cs.Value,5} ┃")
|
┃{(e.Server.Users.Where(u => u.Id == (ulong)cs.UserId).FirstOrDefault()?.Name.TrimTo(18, true) ?? cs.UserId.ToString()),-20} ┃ {cs.Value,5} ┃")
|
||||||
).ToString() + "┗━━━━━━━━━━━━━━━━━━━┻━━━━━━━┛```");
|
).ToString() + "┗━━━━━━━━━━━━━━━━━━━━━┻━━━━━━━┛```");
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user