#spotify assets

1 messages · Page 1 of 1 (latest)

normal hornet
#

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'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