Fix track existence check in Node.get_tracks

Corrects a variable name in the track existence check from 'track' to 'tracks', ensuring the method properly returns an empty list when no tracks are found.
This commit is contained in:
Choco
2025-09-16 14:49:52 +08:00
parent 8a6632e768
commit f1fa4606ed

View File

@@ -399,7 +399,7 @@ class Node:
return []
tracks = await self.get_tracks(query=query, requester=self.bot.user)
if not track:
if not tracks:
return []
if isinstance(tracks, Playlist):