Esempio n. 1
0
        public async Task RemoveNote([Remainder] int id)
        {
            if (!_service.IsUserModerator(Context.User.Id))
            {
                await SendUserNotEnoughRights();

                return;
            }

            bool isNoteDeleted = await _service.DeleteNoteAsync(id);

            if (isNoteDeleted)
            {
                await ReplyAsync($"Note {id} has been removed from userToKick's history.");
            }
            else
            {
                await ReplyAsync($"Note {id} could not be removed from userToKick's history. ");
            }
        }