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

✨ [Discord] Broader support for urls #46

Merged
merged 4 commits into from
Mar 1, 2022
Merged

✨ [Discord] Broader support for urls #46

merged 4 commits into from
Mar 1, 2022

Conversation

beefchimi
Copy link
Owner

@beefchimi beefchimi commented Mar 1, 2022

This PR attempts to support a few more variations for discord URLS - albeit with limitations.

  1. discordapp.xyz/users/* (was already supported)
  2. discord.xyz/channels/*
  3. discord.gg/*

These two new urls unfortunately make preferredUrl unreliable. As such, I've had to add some snowflake code so that we can detect discord and call a special function just for retrieving 1 of 3 (4 if you count the fallback) preferred URLs.

At some point, we will likely want to revise how preferredUrl (and appUrl) work for all networks. There is a bit more context in this issue for Discord.

Lastly, I've done a few small dependency bumps... this has resulted in a TypeScript warning because a dev-configs dependency does not include the latest TypeScript version in its support range. So far, there does not appear to be any issues... but its something I should resolve.

@beefchimi beefchimi added ✨ Feature New addition to the codebase (feature, utility, component, etc.) 🧰 Dependency Any dependency change (add / remove / downgrade / update) labels Mar 1, 2022
@beefchimi beefchimi self-assigned this Mar 1, 2022
@changeset-bot
Copy link

changeset-bot bot commented Mar 1, 2022

🦋 Changeset detected

Latest commit: 371f305

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
socialitejs Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions bot added 📱 Network A social network has been added / removed / modified 🧪 Testing Relating to testing of this code and removed 🧰 Dependency Any dependency change (add / remove / downgrade / update) labels Mar 1, 2022
@beefchimi beefchimi merged commit ca2d059 into main Mar 1, 2022
@beefchimi beefchimi deleted the more-discord branch March 1, 2022 21:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ Feature New addition to the codebase (feature, utility, component, etc.) 📱 Network A social network has been added / removed / modified 🧪 Testing Relating to testing of this code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant