diff --git a/deno/payloads/v10/user.ts b/deno/payloads/v10/user.ts index 2225edb73..cfa02cc0c 100644 --- a/deno/payloads/v10/user.ts +++ b/deno/payloads/v10/user.ts @@ -178,8 +178,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 */ @@ -210,6 +212,24 @@ export interface APIConnection { visibility: ConnectionVisibility; } +export enum ConnectionService { + BattleNet = 'battlenet', + EpicGames = 'epicgames', + Facebook = 'facebook', + GitHub = 'github', + LeagueOfLegends = 'leagueoflegends', + PlayStationNetwork = 'playstation', + Reddit = 'reddit', + SamsungGalaxy = 'samsunggalaxy', + Spotify = 'spotify', + Skype = 'skype', + Steam = 'steam', + Twitch = 'twitch', + Twitter = 'twitter', + Xbox = 'xbox', + YouTube = 'youtube', +} + export enum ConnectionVisibility { /** * Invisible to everyone except the user themselves diff --git a/deno/payloads/v9/user.ts b/deno/payloads/v9/user.ts index 2225edb73..cfa02cc0c 100644 --- a/deno/payloads/v9/user.ts +++ b/deno/payloads/v9/user.ts @@ -178,8 +178,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 */ @@ -210,6 +212,24 @@ export interface APIConnection { visibility: ConnectionVisibility; } +export enum ConnectionService { + BattleNet = 'battlenet', + EpicGames = 'epicgames', + Facebook = 'facebook', + GitHub = 'github', + LeagueOfLegends = 'leagueoflegends', + PlayStationNetwork = 'playstation', + Reddit = 'reddit', + SamsungGalaxy = 'samsunggalaxy', + Spotify = 'spotify', + Skype = 'skype', + Steam = 'steam', + Twitch = 'twitch', + Twitter = 'twitter', + Xbox = 'xbox', + YouTube = 'youtube', +} + export enum ConnectionVisibility { /** * Invisible to everyone except the user themselves diff --git a/payloads/v10/user.ts b/payloads/v10/user.ts index 84cb0d6c0..b4546ce03 100644 --- a/payloads/v10/user.ts +++ b/payloads/v10/user.ts @@ -178,8 +178,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 */ @@ -210,6 +212,24 @@ export interface APIConnection { visibility: ConnectionVisibility; } +export enum ConnectionService { + BattleNet = 'battlenet', + EpicGames = 'epicgames', + Facebook = 'facebook', + GitHub = 'github', + LeagueOfLegends = 'leagueoflegends', + PlayStationNetwork = 'playstation', + Reddit = 'reddit', + SamsungGalaxy = 'samsunggalaxy', + Spotify = 'spotify', + Skype = 'skype', + Steam = 'steam', + Twitch = 'twitch', + Twitter = 'twitter', + Xbox = 'xbox', + YouTube = 'youtube', +} + export enum ConnectionVisibility { /** * Invisible to everyone except the user themselves diff --git a/payloads/v9/user.ts b/payloads/v9/user.ts index 84cb0d6c0..b4546ce03 100644 --- a/payloads/v9/user.ts +++ b/payloads/v9/user.ts @@ -178,8 +178,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 */ @@ -210,6 +212,24 @@ export interface APIConnection { visibility: ConnectionVisibility; } +export enum ConnectionService { + BattleNet = 'battlenet', + EpicGames = 'epicgames', + Facebook = 'facebook', + GitHub = 'github', + LeagueOfLegends = 'leagueoflegends', + PlayStationNetwork = 'playstation', + Reddit = 'reddit', + SamsungGalaxy = 'samsunggalaxy', + Spotify = 'spotify', + Skype = 'skype', + Steam = 'steam', + Twitch = 'twitch', + Twitter = 'twitter', + Xbox = 'xbox', + YouTube = 'youtube', +} + export enum ConnectionVisibility { /** * Invisible to everyone except the user themselves