mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-03 22:15:37 +00:00
fix: add logging for youtube confirmation errors
This commit is contained in:
1 parent
cef6b7f141
commit
50f4157648
1 file changed
+6
@@ -98,6 +98,9 @@ module.exports = {
|
||||
logger.debug(`[Shard ${interaction.guild.shardId}] player.play() successful. Query: ${query}.`);
|
||||
} catch (error) {
|
||||
if (error.message.includes('Sign in to confirm your age')) {
|
||||
logger.debug(
|
||||
`[Shard ${interaction.guild.shardId}] Found track but failed to retrieve audio due to age confirmation warning.`
|
||||
);
|
||||
return await interaction.editReply({
|
||||
embeds: [
|
||||
new EmbedBuilder()
|
||||
@@ -110,6 +113,9 @@ module.exports = {
|
||||
}
|
||||
|
||||
if (error.message.includes('The following content may contain graphic or violent imagery')) {
|
||||
logger.debug(
|
||||
`[Shard ${interaction.guild.shardId}] Found track but failed to retrieve audio due to graphic or violent imagery warning.`
|
||||
);
|
||||
return await interaction.editReply({
|
||||
embeds: [
|
||||
new EmbedBuilder()
|
||||
|
||||
Reference in new issue
Block a user