#spotify assets
1 messages · Page 1 of 1 (latest)
this used to be available, but we removed the sepcific handling of this at some point, so i'd consider this a regression during v12 development, as i cannot find any explicit discussion about the removal atm found the point of removal
we're going to track and discuss this internally, thanks for bringing it up! for now you can handle this yourself (i assume the old way still works, haven't tested it yet)
looks like many things changed in that part of the code base, i'd probably recommend just slicing on ":" into [app, asset] and using
`https://i.scdn.co/image/${asset}`
if app is "spotify" for now
i may have misinterpreted a statement made by discord and caused this to be removed in the process
we're discussing how to/if we want handle this again, internally
https://github.com/discord/discord-api-docs/pull/4617
i'd not recommend modifying library source code (for multiple reasons to do with maintaining the change), you can always write a custom function that does the same thing, though https://github.com/discordjs/discord.js/pull/7637/files
resolveAssets(slug: string) {
const [app, asset] = slug.split(":");
switch (app) {...}
}
or something along those lines should do