diff --git a/discord/connections.py b/discord/connections.py index 8913c7e2d..b625f561c 100644 --- a/discord/connections.py +++ b/discord/connections.py @@ -135,6 +135,8 @@ class PartialConnection: return f'https://account.xbox.com/en-US/Profile?Gamertag={self.name}' elif self.type == ConnectionType.github: return f'https://github.com/{self.name}' + elif self.type == ConnectionType.tiktok: + return f'https://tiktok.com/@{self.name}' class Connection(PartialConnection): diff --git a/discord/enums.py b/discord/enums.py index d954f790a..099a76def 100644 --- a/discord/enums.py +++ b/discord/enums.py @@ -898,6 +898,7 @@ class ConnectionType(Enum): spotify = 'spotify' skype = 'skype' steam = 'steam' + tiktok = 'tiktok' twitch = 'twitch' twitter = 'twitter' youtube = 'youtube' diff --git a/discord/types/user.py b/discord/types/user.py index cbeed6879..2261780e4 100644 --- a/discord/types/user.py +++ b/discord/types/user.py @@ -52,6 +52,7 @@ ConnectionType = Literal[ 'spotify', 'skype', 'steam', + 'tiktok', 'twitch', 'twitter', 'youtube', diff --git a/docs/api.rst b/docs/api.rst index 0df94919d..a7e155ce4 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -3255,6 +3255,10 @@ of :class:`enum.Enum`. .. attribute:: steam The user has a Steam connection. + + .. attribute:: tiktok + + The user has a TikTok connection. .. attribute:: twitch