예제 #1
0
파일: Iou.cs 프로젝트: Chronojam/Mute
        public async Task ListTransactions([CanBeNull, Summary("Filter only to transactions with this user")] IUser other = null)
        {
            //Get all transactions in both directions
            var all = (await _transactions.GetAllTransactions(Context.User.Id, other?.Id)).ToArray();

            if (all.Length == 0)
            {
                await ReplyAsync("No transactions");
            }
            else
            {
                await DisplayTransactions(all);
            }
        }