Androz2091 / discord-player

🎧 Complete framework to simplify the implementation of music commands using discord.js v14
https://discord-player.js.org/
MIT License
605 stars 191 forks source link

fix(queue): add check for null on bridge property #1925

Closed Kamiloo13 closed 3 months ago

Kamiloo13 commented 3 months ago

Changes

Updated GuildQueuePlayerNode.ts getter "totalDuration" to check if bridge property is set properly (is not null) to prevent an error from popping up

TypeError: Cannot read properties of undefined (reading 'duration')
    at get totalDuration (/app/node_modules/discord-player/dist/index.js:2473:46)

Status

vercel[bot] commented 3 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment | Name | Status | Preview | Comments | Updated (UTC) | | :--- | :----- | :------ | :------- | :------ | | **discord-player-website** | ⬜️ Ignored ([Inspect](https://vercel.com/androz2091s-projects/discord-player-website/DYJfNkaYGu91jKNzYr1KXcw9PwVX)) | [Visit Preview](https://discord-player-website-git-fork-kam-747f62-androz2091s-projects.vercel.app) | | Jul 26, 2024 2:59pm |