mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-02 14:38:49 +00:00
fix: Handle another player error from YouTube.
This commit is contained in:
1 parent
5a0f417664
commit
de3657d4fe
1 file changed
+20
-10
+20
-10
@@ -107,13 +107,16 @@ module.exports = {
|
||||
}
|
||||
|
||||
if (
|
||||
error.type === 'TypeError' &&
|
||||
(error.message.includes(
|
||||
'Cannot read properties of null (reading \'createStream\')'
|
||||
) ||
|
||||
error.message.includes(
|
||||
'Failed to fetch resources for ytdl streaming'
|
||||
))
|
||||
(error.type === 'TypeError' &&
|
||||
(error.message.includes(
|
||||
'Cannot read properties of null (reading \'createStream\')'
|
||||
) ||
|
||||
error.message.includes(
|
||||
'Failed to fetch resources for ytdl streaming'
|
||||
))) ||
|
||||
error.message.includes(
|
||||
'Could not extract stream for this track'
|
||||
)
|
||||
) {
|
||||
return await interaction.editReply({
|
||||
embeds: [
|
||||
@@ -168,7 +171,9 @@ module.exports = {
|
||||
embeds: [
|
||||
new EmbedBuilder()
|
||||
.setAuthor({
|
||||
name: interaction.member.nickname || interaction.user.username,
|
||||
name:
|
||||
interaction.member.nickname ||
|
||||
interaction.user.username,
|
||||
iconURL: interaction.user.avatarURL()
|
||||
})
|
||||
.setDescription(
|
||||
@@ -191,7 +196,10 @@ module.exports = {
|
||||
embeds: [
|
||||
new EmbedBuilder()
|
||||
.setAuthor({
|
||||
name: interaction.member.nickname || interaction.member.nickname || interaction.user.username,
|
||||
name:
|
||||
interaction.member.nickname ||
|
||||
interaction.member.nickname ||
|
||||
interaction.user.username,
|
||||
iconURL: interaction.user.avatarURL()
|
||||
})
|
||||
.setDescription(
|
||||
@@ -207,7 +215,9 @@ module.exports = {
|
||||
embeds: [
|
||||
new EmbedBuilder()
|
||||
.setAuthor({
|
||||
name: interaction.member.nickname || interaction.user.username,
|
||||
name:
|
||||
interaction.member.nickname ||
|
||||
interaction.user.username,
|
||||
iconURL: interaction.user.avatarURL()
|
||||
})
|
||||
.setDescription(
|
||||
|
||||
Reference in new issue
Block a user