From 157366caab9bd1981e75d75048348c8a435e0d9a Mon Sep 17 00:00:00 2001 From: owocado <24418520+owocado@users.noreply.github.com> Date: Mon, 8 May 2023 19:15:03 +0530 Subject: [PATCH] Fix PartialConnection.url (#504) also removed facebook connection URL since we talked about this before on how its URL render fails if fb connection name has spaces in it and how facebook assigns different UID than actual users UID for privacy reasons etc. --- discord/connections.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/discord/connections.py b/discord/connections.py index 3809c4619..1cbd20521 100644 --- a/discord/connections.py +++ b/discord/connections.py @@ -124,15 +124,13 @@ class PartialConnection: if self.type == ConnectionType.twitch: return f'https://www.twitch.tv/{self.name}' elif self.type == ConnectionType.youtube: - return f'https://www.youtube.com/{self.id}' + return f'https://www.youtube.com/channel/{self.id}' elif self.type == ConnectionType.skype: return f'skype:{self.id}?userinfo' elif self.type == ConnectionType.steam: return f'https://steamcommunity.com/profiles/{self.id}' elif self.type == ConnectionType.reddit: return f'https://www.reddit.com/u/{self.name}' - elif self.type == ConnectionType.facebook: - return f'https://www.facebook.com/{self.name}' elif self.type == ConnectionType.twitter: return f'https://twitter.com/{self.name}' elif self.type == ConnectionType.spotify: