Compare commits

...

2 Commits

Author SHA1 Message Date
Vlad Frangu
ab1951b7b9 chore(release): 0.20.2 🎉 (#165) 2021-07-21 12:57:08 +03:00
Vlad Frangu
ff75eb3f5d fix(APIInteraction): bring back Ping type (#164)
* fix(APIInteraction): bring back Ping type

* fix(APIPingInteraction): there be no data here!
2021-07-21 12:52:28 +03:00
12 changed files with 39 additions and 7 deletions

View File

@@ -1,3 +1,9 @@
## [0.20.2](https://github.com/discordjs/discord-api-types/compare/0.21.0...0.20.2) (2021-07-21)
### Bug Fixes
- **APIInteraction:** bring back Ping type ([#164](https://github.com/discordjs/discord-api-types/issues/164)) ([ff75eb3](https://github.com/discordjs/discord-api-types/commit/ff75eb3f5dfd7597968c26133d125cfe40ee5838))
## [0.20.1](https://github.com/discordjs/discord-api-types/compare/0.20.0...0.20.1) (2021-07-20)
### Features

View File

@@ -1,3 +1,9 @@
## [0.20.2](https://github.com/discordjs/discord-api-types/compare/0.21.0...0.20.2) (2021-07-21)
### Bug Fixes
- **APIInteraction:** bring back Ping type ([#164](https://github.com/discordjs/discord-api-types/issues/164)) ([ff75eb3](https://github.com/discordjs/discord-api-types/commit/ff75eb3f5dfd7597968c26133d125cfe40ee5838))
## [0.20.1](https://github.com/discordjs/discord-api-types/compare/0.20.0...0.20.1) (2021-07-20)
### Features

View File

@@ -0,0 +1,4 @@
import type { APIBaseInteraction } from './base.ts';
import type { InteractionType } from './responses.ts';
export type APIPingInteraction = APIBaseInteraction<InteractionType.Ping, never>;

View File

@@ -3,6 +3,7 @@ import type {
APIMessageComponentGuildInteraction,
APIMessageComponentInteraction,
} from './_interactions/messageComponents.ts';
import type { APIPingInteraction } from './_interactions/ping.ts';
import type {
APIApplicationCommandDMInteraction,
APIApplicationCommandGuildInteraction,
@@ -14,7 +15,7 @@ export * from './_interactions/messageComponents.ts';
export * from './_interactions/responses.ts';
export * from './_interactions/slashCommands.ts';
export type APIInteraction = APIApplicationCommandInteraction | APIMessageComponentInteraction;
export type APIInteraction = APIPingInteraction | APIApplicationCommandInteraction | APIMessageComponentInteraction;
export type APIDMInteraction = APIApplicationCommandDMInteraction | APIMessageComponentDMInteraction;

View File

@@ -0,0 +1,4 @@
import type { APIBaseInteraction } from './base.ts';
import type { InteractionType } from './responses.ts';
export type APIPingInteraction = APIBaseInteraction<InteractionType.Ping, never>;

View File

@@ -3,6 +3,7 @@ import type {
APIMessageComponentGuildInteraction,
APIMessageComponentInteraction,
} from './_interactions/messageComponents.ts';
import type { APIPingInteraction } from './_interactions/ping.ts';
import type {
APIApplicationCommandDMInteraction,
APIApplicationCommandGuildInteraction,
@@ -14,7 +15,7 @@ export * from './_interactions/messageComponents.ts';
export * from './_interactions/responses.ts';
export * from './_interactions/slashCommands.ts';
export type APIInteraction = APIApplicationCommandInteraction | APIMessageComponentInteraction;
export type APIInteraction = APIPingInteraction | APIApplicationCommandInteraction | APIMessageComponentInteraction;
export type APIDMInteraction = APIApplicationCommandDMInteraction | APIMessageComponentDMInteraction;

4
package-lock.json generated
View File

@@ -1,11 +1,11 @@
{
"name": "discord-api-types",
"version": "0.20.1",
"version": "0.20.2",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"version": "0.20.1",
"version": "0.20.2",
"license": "MIT",
"devDependencies": {
"@babel/core": "^7.14.6",

View File

@@ -1,6 +1,6 @@
{
"name": "discord-api-types",
"version": "0.20.1",
"version": "0.20.2",
"description": "Discord API typings that are kept up to date for use in bot library creation.",
"main": "./v9.js",
"module": "./v9.mjs",

View File

@@ -0,0 +1,4 @@
import type { APIBaseInteraction } from './base';
import type { InteractionType } from './responses';
export type APIPingInteraction = APIBaseInteraction<InteractionType.Ping, never>;

View File

@@ -3,6 +3,7 @@ import type {
APIMessageComponentGuildInteraction,
APIMessageComponentInteraction,
} from './_interactions/messageComponents';
import type { APIPingInteraction } from './_interactions/ping';
import type {
APIApplicationCommandDMInteraction,
APIApplicationCommandGuildInteraction,
@@ -14,7 +15,7 @@ export * from './_interactions/messageComponents';
export * from './_interactions/responses';
export * from './_interactions/slashCommands';
export type APIInteraction = APIApplicationCommandInteraction | APIMessageComponentInteraction;
export type APIInteraction = APIPingInteraction | APIApplicationCommandInteraction | APIMessageComponentInteraction;
export type APIDMInteraction = APIApplicationCommandDMInteraction | APIMessageComponentDMInteraction;

View File

@@ -0,0 +1,4 @@
import type { APIBaseInteraction } from './base';
import type { InteractionType } from './responses';
export type APIPingInteraction = APIBaseInteraction<InteractionType.Ping, never>;

View File

@@ -3,6 +3,7 @@ import type {
APIMessageComponentGuildInteraction,
APIMessageComponentInteraction,
} from './_interactions/messageComponents';
import type { APIPingInteraction } from './_interactions/ping';
import type {
APIApplicationCommandDMInteraction,
APIApplicationCommandGuildInteraction,
@@ -14,7 +15,7 @@ export * from './_interactions/messageComponents';
export * from './_interactions/responses';
export * from './_interactions/slashCommands';
export type APIInteraction = APIApplicationCommandInteraction | APIMessageComponentInteraction;
export type APIInteraction = APIPingInteraction | APIApplicationCommandInteraction | APIMessageComponentInteraction;
export type APIDMInteraction = APIApplicationCommandDMInteraction | APIMessageComponentDMInteraction;