PythonistaGuild / Wavelink

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

Feature/playable node and Inactive Channel Check #303

Closed EvieePy closed 3 months ago

EvieePy commented 3 months ago

Description

Allows a Node to be passed to both Playable.search and Pool.fetch_tracks to search for the given query. If None is passed (Default) both of these methods act as they previously did.

This also adds:

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