igna
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with
8 additions and
0 deletions
-
discord/connections.py
-
discord/enums.py
-
discord/types/user.py
-
docs/api.rst
|
|
@ -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): |
|
|
|
|
|
@ -898,6 +898,7 @@ class ConnectionType(Enum): |
|
|
|
spotify = 'spotify' |
|
|
|
skype = 'skype' |
|
|
|
steam = 'steam' |
|
|
|
tiktok = 'tiktok' |
|
|
|
twitch = 'twitch' |
|
|
|
twitter = 'twitter' |
|
|
|
youtube = 'youtube' |
|
|
|
|
|
@ -52,6 +52,7 @@ ConnectionType = Literal[ |
|
|
|
'spotify', |
|
|
|
'skype', |
|
|
|
'steam', |
|
|
|
'tiktok', |
|
|
|
'twitch', |
|
|
|
'twitter', |
|
|
|
'youtube', |
|
|
|
|
|
@ -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 |
|
|
|
|
|
|
|