mirror of
https://github.com/informaticker/discord-jellyfin-bot.git
synced 2024-11-24 18:41:57 +01:00
🔊 Add debug log for value parts
This commit is contained in:
parent
3b0a0e36c7
commit
5d5023e91a
@ -187,6 +187,14 @@ export class PlayItemCommand {
|
||||
this.logger.debug('Successfully joined the voice channel');
|
||||
|
||||
const valueParts = interaction.values[0].split('_');
|
||||
|
||||
if (valueParts.length !== 2) {
|
||||
this.logger.error(
|
||||
`Failed to extract interaction values from [${valueParts.join(',')}]`,
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
const type = valueParts[0];
|
||||
const id = valueParts[1];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user