From ab604df28be886ac3e6b91c520aa2f2c48cee75a Mon Sep 17 00:00:00 2001 From: Kwoth Date: Thu, 15 Dec 2016 19:28:08 +0100 Subject: [PATCH] weird --- src/NadekoBot/Modules/Gambling/Gambling.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/NadekoBot/Modules/Gambling/Gambling.cs b/src/NadekoBot/Modules/Gambling/Gambling.cs index cc4e123b..efd0f1fa 100644 --- a/src/NadekoBot/Modules/Gambling/Gambling.cs +++ b/src/NadekoBot/Modules/Gambling/Gambling.cs @@ -221,7 +221,7 @@ namespace NadekoBot.Modules.Gambling { var channel = (ITextChannel)umsg.Channel; - IEnumerable richest; + IEnumerable richest = new List(); using (var uow = DbHandler.UnitOfWork()) { richest = uow.Currency.GetTopRichest(10); @@ -235,7 +235,7 @@ $@"```xl ┃ Id ┃ $$$ ┃ "), (cur, cs) => cur.AppendLine($@"┣━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━━┫ -┃{(channel.Guild.GetUser(cs.UserId)?.Username.TrimTo(18, true) ?? cs.UserId.ToString()),-20} ┃ {cs.Amount,6} ┃") +┃{(channel.Guild.GetUser(cs.UserId)?.Username?.TrimTo(18, true) ?? cs.UserId.ToString()),-20} ┃ {cs.Amount,6} ┃") ).ToString() + "┗━━━━━━━━━━━━━━━━━━━━━┻━━━━━━━━┛```").ConfigureAwait(false); } }