🔊 Add debug log for value parts

This commit is contained in:
Manuel 2023-02-19 21:21:55 +01:00
parent 3b0a0e36c7
commit 5d5023e91a

View File

@ -187,6 +187,14 @@ export class PlayItemCommand {
this.logger.debug('Successfully joined the voice channel'); this.logger.debug('Successfully joined the voice channel');
const valueParts = interaction.values[0].split('_'); 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 type = valueParts[0];
const id = valueParts[1]; const id = valueParts[1];