📄️ Introduction
What exactly is inactivity tracking? Inactivity tracking is a feature that allows you to track the activity of a player. This is useful if you want to automatically disconnect the player from the voice channel if the player is inactive for a certain amount of time, or if the all users left the voice channel.
📄️ Integrated trackers
Inactivity trackers are used to determine if a player is active or inactive. Lavalink4NET provides two inactivity trackers out-of-the-box:
📄️ Options
The inactivity tracking service can be configured during the registration of the service using the ConfigureInactivityTracking method. The ConfigureInactivityTracking method accepts an Action delegate which allows you to configure the inactivity tracking service.
📄️ Event handling
Lavalink4NET exposes various player interfaces which can be used to handle events inside of the player. One of such interfaces is the IInactivityPlayerListener interface.
📄️ Custom trackers
Lavalink4NET allows you to write custom trackers to write fully customizable code to track your player's activity. In general, we can differentiate between two types of trackers: Polling and Realtime.