mirror of
https://github.com/Matthww/TuneBot.git
synced 2026-09-22 03:07:45 +00:00
Added history support and changed track fmting
This commit is contained in:
@@ -10,10 +10,11 @@ from utils.log import logger
|
||||
|
||||
if typing.TYPE_CHECKING:
|
||||
from lavalink import DefaultPlayer
|
||||
from lavalink_player import CustomPlayer
|
||||
from bot import TuneBot
|
||||
|
||||
|
||||
def get_player(bot: "TuneBot", guild_id: int) -> "DefaultPlayer":
|
||||
def get_player(bot: "TuneBot", guild_id: int) -> "CustomPlayer":
|
||||
if player := bot.lavalink.player_manager.get(guild_id=guild_id):
|
||||
return player
|
||||
|
||||
|
||||
Reference in New Issue
Block a user