Skip to content

Instantly share code, notes, and snippets.

@boehs
Created August 26, 2022 20:00
Show Gist options
  • Save boehs/7acd5574df3c6d823b6500aeb691c8fb to your computer and use it in GitHub Desktop.
Save boehs/7acd5574df3c6d823b6500aeb691c8fb to your computer and use it in GitHub Desktop.
Make discord think you have spotify premium

Spotify premium discord features free

Discord has a number of features related to music streaming that are "exclusively" available for spotify premium members. Notably, listening parties. To restrict these features to spotify premium, discord runs a few premium checks that we can overwrite.

F&Q

Why does this work? Shouldn't discord not have these permissions for non premium members, just like every other app?

Discord has the ability to control the playback of music for non premium members so they can pause the music on spotify if they are talking too long in a voice call. Spotify could have exclusively granted permission to pause music, instead of playing, pausing, changing songs, etc, but they did not, presumably because they did not have the fine grained control and did not care enough to implement it.

Isn't this a violation of discord/spotify/etc TOS

Yes, just as they actively redact your rights, you redact theirs. Anyway, I doubt discord cares, not their problem, and spotify didn't care enough in the first place to prevent this so why now? This is not the only place where such mods exist.

For discord, there are client mods like powercord, betterdiscord, and aliucord for mobile

For spotify, there are mods like spicetify and xmanager.

Powercord/etc plugin

No. Do it yourself. Note this sort of plugin would also violate the powercord guidelines

Then how do I use

Whenever you want to LP, Open your console. Paste it in. Hit enter.

What

Google.

Did you write it yourself?

Yes

How?

  • I understand how webpack works
  • Trial and error
  • Experiment
  • Have fun!
webpackChunkdiscord_app.push([
[Math.random()], {}, (r) => {
Object.values(r.c).find(m => m.exports && m.exports && m.exports.isSpotifyPremium !== void 0).exports.isSpotifyPremium = () => {
return true
}
Object.values(r.c).find(m => m.exports && m.exports && m.exports.ensureSpotifyPremium !== void 0).exports.ensureSpotifyPremium = () => {
return Promise.resolve()
}
}
]);
@boehs
Copy link
Author

boehs commented Nov 22, 2023

Not outside of safari, and I cannot comment on if this still works, I've since bought spotify premium

@michaelineberry
Copy link

Thank you for sharing your thoughts! Discord’s exclusive Spotify Premium features, like listening parties, truly enhance the music streaming experience. While these features are designed for Premium members, exploring the Spotify Premium app ensures you get the most out of your music, both on Discord and beyond. Download Spotify Premium now to enjoy seamless integration and unlock all the benefits!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment