Champions, Abilities and Skins

class arez.Champion[source]

Represents a Champion and it’s information.

You can find these on the CacheEntry.champions attribute, as well as various other objects returned from the API.

Inherits from CacheObject.

Note

An object of this class can be False in a boolean context, if it’s internal state is deemed incomplete or corrupted. For the internal state to be considered valid, there has to be exactly 16 cards and 3 talents assigned to the champion. If you don’t plan on accessing / processing those, you can use the is not None in the check instead. Examples:

if champion:
    # champion exists and is valid
if not champion:
    # champion doesn't exist, or exists in an invalid state
if champion is not None:
    # champion exists but might be invalid
if champion is None:
    # champion doesn't exist
name

The name of the champion.

Type

str

id

The ID of the champion.

Type

int

title

The champion’s title.

Type

str

role

The champion’s role.

Type

Literal[“Front Line”, “Support”, “Damage”, “Flank”]

lore

The champion’s lore.

Type

str

icon_url

A URL of this champion’s icon.

Type

str

health

The amount of health points this champion has at base.

Type

int

speed

The champion’s speed.

Type

int

abilities

An object that lets you iterate over all abilities this champion has.

Use list(...) to get a list instead.

Note

Some champions may have more than 5 abilities - this will happen if one of their abilities allows switching other abilities between their states.

Type

Lookup[Ability]

talents

An object that lets you iterate over all talents this champion has.

Use list(...) to get a list instead.

Type

Lookup[Device]

cards

An iterator that lets you iterate over all cards this champion has.

Use list(...) to get a list instead.

Type

Lookup[Device]

skins

An object that lets you iterate over all skins this champion has.

Use list(...) to get a list instead.

Type

Lookup[Skin]

await get_skins()[source]

Returns a list of skins this champion has.

Note

This information is cached under the skins attribute.

Returns

The list of skins available for this champion.

Return type

list[Skin]

class arez.Ability[source]

Represents a Champion’s Ability.

You can find these on the Champion.abilities attribute.

Inherits from CacheObject.

name

The name of the ability.

Type

str

id

The ID of the ability.

Type

int

champion

The champion this ability belongs to.

Type

Champion

description

The description of the ability.

Type

str

type

The type of the ability (currently only damage type).

Type

AbilityType

cooldown

The ability’s cooldown, in seconds.

Type

int

icon_url

A URL of this ability’s icon.

Type

str

class arez.Skin[source]

Represents a Champion’s Skin and it’s information.

You can get these from the Champion.get_skins method, as well as find on various other objects returned from the API.

Inherits from CacheObject.

name

The name of the skin.

Type

str

id

The ID of the skin.

Type

int

champion

The champion this skin belongs to.

Type

Champion

rarity

The skin’s rarity.

Type

Rarity