Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(RichPresenceAssets): Remove undocumented checks #7637

Merged

Conversation

Jiralite
Copy link
Member

Please describe the changes this PR makes and why it should be merged:
As per discord/discord-api-docs#4617, the following parsing should be removed:

  • Twitch
  • YouTube
  • Spotify

It seems the media proxy is fine to stay.

This resolves #7635.

Status and versioning classification:

  • Code changes have been tested against the Discord API, or there are no code changes
  • I know how to update typings and have done so, or typings don't need updating
  • This PR includes breaking changes (methods removed or renamed, parameters moved or removed)

Copy link
Member

@kyranet kyranet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know why the thumbs down, but if it's undocumented, we shouldn't support it, since it can change anytime without previous notice.

And obviously, if you somehow rely on this to work fine, you're in big trouble once the format changes (if it does) and you get invalid images as a result.

If any you really need it, you can always make your own function supporting those platforms.

So yeah, LGTM.

@KhafraDev
Copy link
Contributor

since it can change anytime without previous notice.

"Hypothetically" is not a good reason lol

@iCrawl iCrawl merged commit 9a6e691 into discordjs:main Mar 24, 2022
@Jiralite Jiralite deleted the refactor/remove-custom-image-parsing branch March 24, 2022 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Remove support for custom images
6 participants