From 4369dfae60b213cdd675c002e3133f1394b16978 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Thu, 27 Apr 2023 20:59:25 +0200 Subject: [PATCH] mention about 404 --- src/commands/music/play.ts | 6 ++++++ 1 file changed, 6 insertions(+) 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) => ({