diff --git a/package.json b/package.json index 7127e415..fa8874f0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "discord-api-types", - "version": "0.5.0", + "version": "0.6.0", "description": "Discord API typings that are kept up to date for use in bot library creation.", "main": "default/index.js", "scripts": { diff --git a/v6/gateway/index.ts b/v6/gateway/index.ts index 37ae0ee5..d7341bd2 100644 --- a/v6/gateway/index.ts +++ b/v6/gateway/index.ts @@ -311,8 +311,19 @@ export type GatewayChannelModifyDispatch = DataPayload< >; /* eslint-enable @typescript-eslint/indent */ +/** + * @deprecated Gateway v6 is deprecated and the types will not receive further updates, please update to v8. + */ export type GatewayChannelCreateDispatch = GatewayChannelModifyDispatch; + +/** + * @deprecated Gateway v6 is deprecated and the types will not receive further updates, please update to v8. + */ export type GatewayChannelUpdateDispatch = GatewayChannelModifyDispatch; + +/** + * @deprecated Gateway v6 is deprecated and the types will not receive further updates, please update to v8. + */ export type GatewayChannelDeleteDispatch = GatewayChannelModifyDispatch; /** @@ -338,7 +349,14 @@ export type GatewayGuildModifyDispatch = DataPayload< APIGuild >; +/** + * @deprecated Gateway v6 is deprecated and the types will not receive further updates, please update to v8. + */ export type GatewayGuildCreateDispatch = GatewayGuildModifyDispatch; + +/** + * @deprecated Gateway v6 is deprecated and the types will not receive further updates, please update to v8. + */ export type GatewayGuildUpdateDispatch = GatewayGuildModifyDispatch; /** @@ -360,7 +378,14 @@ export type GatewayGuildBanModifyDispatch = DataPayload< } >; +/** + * @deprecated Gateway v6 is deprecated and the types will not receive further updates, please update to v8. + */ export type GatewayGuildBanAddDispatch = GatewayGuildBanModifyDispatch; + +/** + * @deprecated Gateway v6 is deprecated and the types will not receive further updates, please update to v8. + */ export type GatewayGuildBanRemoveDispatch = GatewayGuildBanModifyDispatch; /** @@ -446,7 +471,14 @@ export type GatewayGuildRoleModifyDispatch = DataPayload< } >; +/** + * @deprecated Gateway v6 is deprecated and the types will not receive further updates, please update to v8. + */ export type GatewayGuildRoleCreateDispatch = GatewayGuildRoleModifyDispatch; + +/** + * @deprecated Gateway v6 is deprecated and the types will not receive further updates, please update to v8. + */ export type GatewayGuildRoleUpdateDispatch = GatewayGuildRoleModifyDispatch; /** diff --git a/v6/rest/channel.ts b/v6/rest/channel.ts index 5e1293a1..ebd153f1 100644 --- a/v6/rest/channel.ts +++ b/v6/rest/channel.ts @@ -68,10 +68,12 @@ export interface RESTPatchAPIChannelJSONBody { * @deprecated API v6 is deprecated and the types will not receive further updates, please update to v8. */ export type RESTGetAPIChannelResult = APIChannel; + /** * @deprecated API v6 is deprecated and the types will not receive further updates, please update to v8. */ export type RESTPatchAPIChannelResult = APIChannel; + /** * @deprecated API v6 is deprecated and the types will not receive further updates, please update to v8. */ @@ -88,6 +90,9 @@ export interface RESTGetAPIChannelMessagesQuery { limit?: number; } +/** + * @deprecated API v6 is deprecated and the types will not receive further updates, please update to v8. + */ export type RESTGetAPIChannelMessagesResult = APIMessage[]; /** @@ -146,14 +151,17 @@ export interface RESTPatchAPIChannelMessageJSONBody { * @deprecated API v6 is deprecated and the types will not receive further updates, please update to v8. */ export type RESTGetAPIChannelMessageResult = APIMessage; + /** * @deprecated API v6 is deprecated and the types will not receive further updates, please update to v8. */ export type RESTPostAPIChannelMessageResult = APIMessage; + /** * @deprecated API v6 is deprecated and the types will not receive further updates, please update to v8. */ export type RESTPatchAPIChannelMessageResult = APIMessage; + /** * @deprecated API v6 is deprecated and the types will not receive further updates, please update to v8. */ @@ -178,10 +186,12 @@ export type RESTGetAPIChannelMessageReactionsResult = APIUser[]; * @deprecated API v6 is deprecated and the types will not receive further updates, please update to v8. */ export type RESTPutAPIChannelMessageReactionResult = never; + /** * @deprecated API v6 is deprecated and the types will not receive further updates, please update to v8. */ export type RESTDeleteAPIChannelMessageReactionResult = never; + /** * @deprecated API v6 is deprecated and the types will not receive further updates, please update to v8. */ @@ -214,6 +224,7 @@ export interface RESTPutAPIChannelPermissionsJSONBody { * @deprecated API v6 is deprecated and the types will not receive further updates, please update to v8. */ export type RESTPutAPIChannelPermissionsResult = never; + /** * @deprecated API v6 is deprecated and the types will not receive further updates, please update to v8. */ @@ -254,6 +265,7 @@ export type RESTGetAPIChannelPinsResult = APIMessage[]; * @deprecated API v6 is deprecated and the types will not receive further updates, please update to v8. */ export type RESTPutAPIChannelPinResult = never; + /** * @deprecated API v6 is deprecated and the types will not receive further updates, please update to v8. */ @@ -272,6 +284,7 @@ export interface RESTPutAPIChannelRecipientJSONBody { * @deprecated API v6 is deprecated and the types will not receive further updates, please update to v8. */ export type RESTPutAPIChannelRecipientResult = unknown; + /** * @deprecated API v6 is deprecated and the types will not receive further updates, please update to v8. */ diff --git a/v6/rest/guild.ts b/v6/rest/guild.ts index 2b0c9da6..53aa363e 100644 --- a/v6/rest/guild.ts +++ b/v6/rest/guild.ts @@ -75,6 +75,9 @@ export interface RESTGetAPIGuildQuery { with_counts?: boolean; } +/** + * @deprecated API v6 is deprecated and the types will not receive further updates, please update to v8. + */ export type RESTGetAPIGuildResult = APIGuild; /** @@ -137,6 +140,9 @@ export type RESTPostAPIGuildChannelJSONBody = Partial< > & Required>; +/** + * @deprecated API v6 is deprecated and the types will not receive further updates, please update to v8. + */ export type RESTPostAPIGuildChannelResult = APIChannel; /** @@ -433,6 +439,9 @@ export interface RESTPatchAPIGuildIntegrationJSONBody { enable_emoticons?: boolean | null; } +/** + * @deprecated API v6 is deprecated and the types will not receive further updates, please update to v8. + */ export type RESTPatchAPIGuildIntegrationResult = never; /** diff --git a/v6/rest/invite.ts b/v6/rest/invite.ts index d5cc6d03..06bee3a8 100644 --- a/v6/rest/invite.ts +++ b/v6/rest/invite.ts @@ -8,6 +8,9 @@ export interface RESTGetAPIInviteQuery { with_counts?: boolean; } +/** + * @deprecated API v6 is deprecated and the types will not receive further updates, please update to v8. + */ export type RESTGetAPIInviteResult = APIInvite; /** diff --git a/v6/rest/webhook.ts b/v6/rest/webhook.ts index 5346e9f6..27be2dbf 100644 --- a/v6/rest/webhook.ts +++ b/v6/rest/webhook.ts @@ -70,6 +70,10 @@ export type RESTPatchAPIWebhookWithTokenResult = Omit; * @deprecated API v6 is deprecated and the types will not receive further updates, please update to v8. */ export type RESTDeleteAPIWebhookResult = never; + +/** + * @deprecated API v6 is deprecated and the types will not receive further updates, please update to v8. + */ export type RESTDeleteAPIWebhookWithTokenResult = never; /**