Gets the underlying Discord VoiceConnection.
Underlying VoiceConnection
Gets the last activity detected on this connection. Returns now
if currently active
Moment of last activity, is now if currently active.
Disconnect from the voice channel and cleans up underlying connection and wrapper.
!(DANGER) Do not continue using this after disconnect.
Subscribe to when inactivity reaches provided time threshold.
![WARNING] For simplicity's sake, only 1 listener can exist, so if this method is called more than once, an error will throw. ![WARNING] This may change in the future.
Duration of inactivity to wait for to call provided consumer.
Method to be provided with the connection once inactive for long enough.
Wraps a VoiceConnection in voice activity tracking logic.
ActivityTrackingVoiceConnection wrapping the provided connection.
Wrapper for Discord's VoiceConnection that keeps track of activity so you can customize things to do when inactive (usually for auto-disconnecting).