mirror of
https://github.com/informaticker/discord-jellyfin-bot.git
synced 2024-11-23 18:21:55 +01:00
✨ Add artists to the play selection and dropdown component
This commit is contained in:
parent
a7eb89d0e4
commit
fb60efde67
@ -70,7 +70,7 @@ export class PlayItemCommand
|
|||||||
`:white_small_square: ${trimStringToFixedLength(
|
`:white_small_square: ${trimStringToFixedLength(
|
||||||
this.markSearchTermOverlap(item.Name, dto.search),
|
this.markSearchTermOverlap(item.Name, dto.search),
|
||||||
30,
|
30,
|
||||||
)} *(${item.Type})*`,
|
)} [${item.Artists.join(', ')}] *(${item.Type})*`,
|
||||||
);
|
);
|
||||||
|
|
||||||
let description =
|
let description =
|
||||||
@ -100,7 +100,7 @@ export class PlayItemCommand
|
|||||||
|
|
||||||
const selectOptions: { label: string; value: string; emoji?: string }[] =
|
const selectOptions: { label: string; value: string; emoji?: string }[] =
|
||||||
firstItems.map((item) => ({
|
firstItems.map((item) => ({
|
||||||
label: item.Name,
|
label: `${item.Name} [${item.Artists.join(', ')}]`,
|
||||||
value: item.Id,
|
value: item.Id,
|
||||||
emoji: emojiForType(item.Type),
|
emoji: emojiForType(item.Type),
|
||||||
}));
|
}));
|
||||||
|
Loading…
Reference in New Issue
Block a user