When

eventEnds()

Be notified when the event ends.
The callback is not called if the user joins the event after the end.

usage:

When.eventEnds(() => {
 // do something
})
ParamTypeDescription
callbackFunctionA function to be called whenever the event is triggered

eventStarts()

Be notified when the event starts.
The callback is not called if the user joins the event after the start.

usage:

When.eventStarts(() => {
 // do something
})
ParamTypeDescription
callbackFunctionA function to be called whenever the event is triggered