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

feat: add ConnectionService to APIConnection#type #491

Merged
merged 5 commits into from
Jul 15, 2022
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
21 changes: 20 additions & 1 deletion deno/payloads/v10/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,10 @@ export interface APIConnection {
name: string;
/**
* The service of the connection
*
* See https://discord.com/developers/docs/resources/user#connection-object-services
*/
type: string;
type: ConnectionService;
/**
* Whether the connection is revoked
*/
Expand Down Expand Up @@ -202,6 +204,23 @@ export interface APIConnection {
visibility: ConnectionVisibility;
}

export enum ConnectionService {
BattleNet = 'battlenet',
EpicGames = 'epicgames',
Facebook = 'facebook',
GitHub = 'github',
LeagueOfLegends = 'leagueoflegends',
PlayStationNetwork = 'playstation',
Reddit = 'reddit',
Spotify = 'spotify',
Skype = 'skype',
Steam = 'steam',
Twitch = 'twitch',
Twitter = 'twitter',
Xbox = 'xbox',
YouTube = 'youtube',
}

export enum ConnectionVisibility {
/**
* Invisible to everyone except the user themselves
Expand Down
21 changes: 20 additions & 1 deletion deno/payloads/v9/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,10 @@ export interface APIConnection {
name: string;
/**
* The service of the connection
*
* See https://discord.com/developers/docs/resources/user#connection-object-services
*/
type: string;
type: ConnectionService;
/**
* Whether the connection is revoked
*/
Expand Down Expand Up @@ -202,6 +204,23 @@ export interface APIConnection {
visibility: ConnectionVisibility;
}

export enum ConnectionService {
BattleNet = 'battlenet',
EpicGames = 'epicgames',
Facebook = 'facebook',
GitHub = 'github',
LeagueOfLegends = 'leagueoflegends',
PlayStationNetwork = 'playstation',
Reddit = 'reddit',
Spotify = 'spotify',
Skype = 'skype',
Steam = 'steam',
Twitch = 'twitch',
Twitter = 'twitter',
Xbox = 'xbox',
YouTube = 'youtube',
}

export enum ConnectionVisibility {
/**
* Invisible to everyone except the user themselves
Expand Down
21 changes: 20 additions & 1 deletion payloads/v10/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,10 @@ export interface APIConnection {
name: string;
/**
* The service of the connection
*
* See https://discord.com/developers/docs/resources/user#connection-object-services
*/
type: string;
type: ConnectionService;
/**
* Whether the connection is revoked
*/
Expand Down Expand Up @@ -202,6 +204,23 @@ export interface APIConnection {
visibility: ConnectionVisibility;
}

export enum ConnectionService {
BattleNet = 'battlenet',
EpicGames = 'epicgames',
Facebook = 'facebook',
GitHub = 'github',
LeagueOfLegends = 'leagueoflegends',
PlayStationNetwork = 'playstation',
Reddit = 'reddit',
Spotify = 'spotify',
Skype = 'skype',
Steam = 'steam',
Twitch = 'twitch',
Twitter = 'twitter',
Xbox = 'xbox',
YouTube = 'youtube',
}

export enum ConnectionVisibility {
/**
* Invisible to everyone except the user themselves
Expand Down
21 changes: 20 additions & 1 deletion payloads/v9/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,10 @@ export interface APIConnection {
name: string;
/**
* The service of the connection
*
* See https://discord.com/developers/docs/resources/user#connection-object-services
*/
type: string;
type: ConnectionService;
/**
* Whether the connection is revoked
*/
Expand Down Expand Up @@ -202,6 +204,23 @@ export interface APIConnection {
visibility: ConnectionVisibility;
}

export enum ConnectionService {
BattleNet = 'battlenet',
EpicGames = 'epicgames',
Facebook = 'facebook',
GitHub = 'github',
LeagueOfLegends = 'leagueoflegends',
PlayStationNetwork = 'playstation',
Reddit = 'reddit',
Spotify = 'spotify',
Skype = 'skype',
Steam = 'steam',
Twitch = 'twitch',
Twitter = 'twitter',
Xbox = 'xbox',
YouTube = 'youtube',
}

export enum ConnectionVisibility {
/**
* Invisible to everyone except the user themselves
Expand Down