Skip to main content

CharacterData

class CharacterData

constructor

new CharacterData(data, enka, candSkillDepotId)
PARAMETERTYPEOPTIONALDEFAULTDESCRIPTION
dataJsonObject
enkaEnkaClient
candSkillDepotIdnumber✔️

Properties

id

Type: number


enka

Type: EnkaClient


name

Type: TextAssets


description

Type: TextAssets


bodyType

Type: BodyType


weaponType

Type: WeaponType


gender

Type: Gender


icon

Type: ImageAssets


sideIcon

Type: ImageAssets


splashImage

Type: ImageAssets


gachaSlice

This is not available for Travelers

Type: ImageAssets


cardIcon

Type: ImageAssets


nameCard

This will be null if the character is Traveler

Type: NameCard | null


rarity

Type: CharacterRarity


stars

Type: number


costumes

Type: Costume[]


skillDepotId

Type: number


elementalBurst

Type: ElementalBurst | null


element

Type: Element | null


skills

Type: Skill[]


elementalSkill

Can be null if the character doesn't have element such as traveler without elements

Type: ElementalSkill | null


normalAttack

Type: NormalAttack


passiveTalents

Type: PassiveTalent[]


constellations

Type: Constellation[]


releasedAt

This will be null if the character is not (being) released character, like Travelers and test avatars

Type: Date | null


isArchon

Type: boolean


isTraveler

Type: boolean


details

Information in the profile menu in in-game character screen

Type: CharacterDetails | null


Methods

getById

static

Returns: CharacterData

PARAMETERTYPEOPTIONALDEFAULTDESCRIPTION
idnumber
enkaEnkaClient
candSkillDepotIdnumber✔️

getOriginalName

Returns: TextAssets

  • character's original name (Travelers -> Aether, Lumine)

getAscensionData

Returns: CharacterAscension

PARAMETERTYPEOPTIONALDEFAULTDESCRIPTION
ascensionnumberascension level between 0 and 6

getStats

Returns: StatProperty[]

PARAMETERTYPEOPTIONALDEFAULTDESCRIPTION
ascensionnumberascension level between 0 and 6
levelnumbercharacter level between 1 and 90