From 7c5caa8d6d944317dfdf3d097e2fcc695ea2a0cf Mon Sep 17 00:00:00 2001 From: Choco Date: Thu, 3 Jul 2025 16:10:41 +0800 Subject: [PATCH] Updated the search platform from spotify to youtube --- cogs/basic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/basic.py b/cogs/basic.py index 9eb6d36..a7d4730 100644 --- a/cogs/basic.py +++ b/cogs/basic.py @@ -93,7 +93,7 @@ class Basic(commands.Cog): node = voicelink.NodePool.get_node() if not node: return [] - tracks: list[voicelink.Track] = await node.get_tracks(current, requester=interaction.user, search_type=SearchType.SPOTIFY) + tracks: list[voicelink.Track] = await node.get_tracks(current, requester=interaction.user) return [app_commands.Choice(name=truncate_string(f"🎵 {track.author} - {track.title}", 100), value=truncate_string(f"{track.author} - {track.title}", 100)) for track in tracks] if tracks else [] history = {track["identifier"]: track for track_id in reversed(await get_user(interaction.user.id, "history")) if (track := voicelink.decode(track_id))["uri"]}