# Create a Character

## API

```typescript
constructor(name: string, level: number, ascend: boolean, constellation: number, args: any)
```

### name

All supported names are available [here](https://wormtql.gitbook.io/genshin-panel-doc/function/getcharacterattribute)

### level

An integer from `0` to `90`

### ascend

Whether the level is ascended, this only makes sense when the level is `20/40/50/60/70/80`

### constellation

The constellation of the character

### args

Character specific args, you can find all args [here](https://wormtql.gitbook.io/genshin-panel-doc/function/getweaponattribute)

## Examples

```javascript
const app = require("genshin_panel");

let keqing = new app.Character("keqing", 90, false, 0);
let hutao = new app.Character("胡桃", 80, true, 2, { hpBelow50: true });
```

##
