mention about 404

This commit is contained in:
Mylloon 2023-04-27 20:59:25 +02:00
parent 4270e09011
commit 4369dfae60
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -158,8 +158,14 @@ export default {
loc_default?.get(`c_${filename}_opt1_name`) as string, loc_default?.get(`c_${filename}_opt1_name`) as string,
true true
); );
const results = await player.search(query); 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 // Returns a list of songs with their title
return interaction.respond( return interaction.respond(
results.tracks.slice(0, 10).map((t) => ({ results.tracks.slice(0, 10).map((t) => ({