예제 #1
0
        public void MoveRoles()
        {
            var rol = Util.LoadAllRolesFromServer();

            foreach (var r in rol)
            {
                DatabaseUtils.ChangeCollection("roles");
                CreateObjectUtils.CreateRoleInDatabase(r._id, r.description, r.difficulty);
            }
        }
예제 #2
0
 public async Task MakeRoles(string name, string description, int difficulty)
 {
     CreateObjectUtils.CreateRoleInDatabase(name, description, difficulty);
     await ReplyAsync($"Role has been inserted into the database");
     await CreateRoles();
 }