formatting fixes

This commit is contained in:
Erik 2024-03-29 21:57:45 +02:00
parent eea615893a
commit b8f2aab64f

View File

@ -36,7 +36,7 @@ class SearchCommand extends Command
if (!results.length) if (!results.length)
return 'No results found'; return 'No results found';
return ` return `
**Search results:**\n\`\`\`${results.map(result => `\t- [id: ${result.id}] **${result.title}** - ${result.artist} (Album: ${result.album ?? 'Unknown'}) [${result.year ?? 'Unknown year'}]`).join('\n')}\`\`\` **Search results:**\n\`\`\`${results.map(result => `\t- [id: ${result.id}] ${result.title} - ${result.artist} (Album: ${result.album ?? 'Unknown'}) [${result.year ?? 'Unknown year'}]`).join('\n')}\`\`\`
`; `;
} }
} }