Пример #1
0
        private async Task ShowBalances([CanBeNull] IUser other, [NotNull] Func <IBalance, bool> filter, string none)
        {
            var balances = (await _transactions.GetBalances(Context.User.Id, other?.Id)).Where(filter).ToArray();

            if (balances.Length == 0)
            {
                await ReplyAsync(none);
            }
            else
            {
                await DisplayBalances(balances);
            }
        }