Exemple #1
0
        public async Task GetNotes(User user)
        {
            if (!_service.IsUserModerator(Context.User.Id))
            {
                await SendUserNotEnoughRights();

                return;
            }

            IList <INote> notes = _service.GetNotes(user);

            if (notes == null || notes.Count == 0)
            {
                await ReplyAsync($"User has no notes in history.");
            }
            else
            {
                // ToDo: send embedded messages with all notes of users
            }
        }