diff --git a/src/commands/music/play.ts b/src/commands/music/play.ts index ecd18ce..44251e8 100644 --- a/src/commands/music/play.ts +++ b/src/commands/music/play.ts @@ -158,8 +158,14 @@ export default { loc_default?.get(`c_${filename}_opt1_name`) as string, true ); + const results = await player.search(query); + /* Since Discord wanna receive a response within 3 secs and results is async + * and can take longer than that, exception of type 'Unknown interaction' (10062) + * happens. + * TODO: Silently pass the exception */ + // Returns a list of songs with their title return interaction.respond( results.tracks.slice(0, 10).map((t) => ({