Create a NoticeManager
Language of notices
Optional
updateInterval: numberUpdate interval(ms) Min: 1 minute
Optional
urlParams: Partial<URLParams>URL params
Readonly
languageLanguage of notices
Readonly
noticesNotices
Readonly
updateUpdate interval(ms)
Alias for emitter.on(eventName, listener)
.
The name of the event.
The callback function. (supports async)
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 keyof NoticeManagerEventMapArguments to pass to the listeners.
Alias for emitter.removeListener()
.
The name of the event.
The callback function. (supports async)
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.
The name of the event.
The callback function. (supports async)
Adds a one-timelistener
function for the event named eventName
. The next time eventName
is triggered, this listener is removed and then invoked.
The name of the event.
The callback function. (supports async)
Removes all listeners, or those of the specified eventName
.
Optional
event: NoticeManagerEvents | (keyof NoticeManagerEventMap) | KThe name of the event.
Removes the specified listener
from the listener array for the event namedeventName
.
The name of the event.
The callback function. (supports async)
Class for fetching notices from mihoyo