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)
.
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.
Arguments to pass to the listeners.
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: NoticeManagerEvents | (keyof NoticeManagerEventMap) | KThe name of the event.
Removes the specified listener
from the listener array for the event namedeventName
.
Update notices
Class for fetching notices from mihoyo