PythonistaGuild / Wavelink

A powerful Lavalink library for Discord.py.
https://wavelink.dev
MIT License
397 stars 182 forks source link

Add inactive_channel check. #302

Closed EvieePy closed 5 months ago

EvieePy commented 5 months ago

Description

Add the inactive_channel check to Player. The check dispatches the currently available wavelink_inactive_player event via Discord.py when a channel is deemed inactive.

An inactive channel is one where no real(non-bot) members are in the channel for a specified amount of played tracks. This differs from the current inactive_timeout which is a time based check on how long the player has not been playing, though they both work together.

Checklist

EvieePy commented 5 months ago

Implented accidentally in #303