chore: release 0.6.0 (#23)

This commit is contained in:
Vlad Frangu
2020-10-04 22:35:00 +03:00
committed by GitHub
parent 11b95c8609
commit e2015c63e1
6 changed files with 62 additions and 1 deletions

View File

@@ -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": {

View File

@@ -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;
/**

View File

@@ -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.
*/

View File

@@ -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<Pick<APIChannel, 'name'>>;
/**
* @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;
/**

View File

@@ -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;
/**

View File

@@ -70,6 +70,10 @@ export type RESTPatchAPIWebhookWithTokenResult = Omit<APIWebhook, 'user'>;
* @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;
/**