Skip to content

Commit

Permalink
🐛 fix(commands.py): change get loca l tracks method
Browse files Browse the repository at this point in the history
  • Loading branch information
Mantouisyummy committed Dec 12, 2023
1 parent d0e372e commit e3faef3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lava/cogs/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ async def play(self, interaction: ApplicationCommandInteraction, query: str, ind
# Check locals
if not results or not results.tracks:
self.bot.logger.info("No results found with lavalink for query %s, checking local sources", query)
results: LoadResult = await player.node.get_tracks(query, check_local=True)
results: LoadResult = await self.bot.lavalink.get_local_tracks(query)

if not results or not results.tracks: # If nothing was found
return await interaction.edit_original_response(
Expand Down

0 comments on commit e3faef3

Please sign in to comment.