Events
Reading time:1 min read
It's recommended to read the Events Overview and Event Subscribers pages first.
The SessionManager has an EventBus that allows you to listen to events related to sessions.
This is useful for monitoring, logging, or any other custom logic you want to execute when a session starts, updates, etc.
Events
The following events are available:
import { } from '@nyx-discord/plugin-sessions/djs';
.- SessionStart
- SessionUpdate
- SessionEnd
- SessionExpire
Usage
Subscriber creation
Create a subscriber that will listen to a given event, use the SessionEventArgs type for the arguments map. Check the Event Subscribers page for more information.
