I love both of you Discord and Spotify, but this new 30 seccond rule gets pretty annoying when my music gets turned off while just talking "to much." I mean talking kind of is the whole point of Discord...
Recently, Discord started automatically pausing Spotify when your mic has been active for 30 seconds while Spotify is playing (on any device) in order to comply with Spotify's ToS. While I this is a valid reason, it is annoying.
After a while this got too annyoing, my music would just flat out stop while playing games on mic with friends, while using headphones.
Use Better Discord and add discord-spotify-fix.plugin.js
to your plugins folder.
Copy the contents of copyme.js
into the developer tool's console of the Discord app.
The only caveat being you'll have to do this everytime you open Discord.
After checking the code within the JS file, I noticed that Discord pushes the pause request via the Spotify API, so my solution was to create a firewall rule that applies to Discord.exe only, that blocks api.spotify.com (IP 35.186.224.25)
NOTE: This will block all communication from Discord to the Spotify API.