Create a EnkaManager
Alias for emitter.on(eventName, listener)
.
Protected
emitSynchronously calls each of the listeners registered for the event namedeventName
, in the order they were registered, passing the supplied arguments to each.
Returns true
if the event had listeners, false
otherwise.
The name of the event.
Rest
...args: K extends "GET_NEW_ENKA_DATA"Arguments to pass to the listeners.
Fetch Status from 1 hour ago to now
Optional
fetchOption: RequestInitFetch option
Status from 1 hour ago to now
Fetch EnkaAccount from enka.network
Enka Account Username
Optional
fetchOption: RequestInitFetch option
EnkaAccount
Fetch GenshinAccounts from enka.network
Enka Account Username
Optional
fetchOption: RequestInitFetch option
GenshinAccounts
Fetch now Status
Optional
fetchOption: RequestInitFetch option
Now status
Fetch PlayerDetail from enka.network
UID
Optional
fetchOption: RequestInitFetch option
PlayerDetail
Alias for emitter.removeListener()
.
Adds the listener
function to the end of the listeners array for the event named eventName
.
No checks are made to see if the listener
has already been added.
Multiple calls passing the same combination of eventName
and listener
will result in the listener
being added, and called, multiple times.
Adds a one-timelistener
function for the event named eventName
. The next time eventName
is triggered, this listener is removed and then invoked.
Removes all listeners, or those of the specified eventName
.
Optional
event: "GET_NEW_ENKA_DATA" | GET_NEW_ENKA_DATA | KThe name of the event.
Removes the specified listener
from the listener array for the event namedeventName
.
Class for fetching EnkaData from enka.network