-
-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(payloads): add entrypoint command payloads (#1166)
* feat: add entrypoint command payloads * fix: data is present for entry point command interactions * fix: missed export * fix: lint * fix: deno
- Loading branch information
Showing
16 changed files
with
232 additions
and
20 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
deno/payloads/v10/_interactions/_applicationCommands/entryPoint.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import type { APIApplicationCommandInteractionWrapper, ApplicationCommandType } from '../applicationCommands.ts'; | ||
import type { APIDMInteractionWrapper, APIGuildInteractionWrapper } from '../base.ts'; | ||
import type { APIBaseApplicationCommandInteractionData } from './internals.ts'; | ||
|
||
/** | ||
* https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-interaction-data | ||
*/ | ||
export type APIPrimaryEntryPointCommandInteractionData = | ||
APIBaseApplicationCommandInteractionData<ApplicationCommandType.PrimaryEntryPoint>; | ||
|
||
/** | ||
* https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object | ||
*/ | ||
export type APIPrimaryEntryPointCommandInteraction = | ||
APIApplicationCommandInteractionWrapper<APIPrimaryEntryPointCommandInteractionData>; | ||
|
||
/** | ||
* https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object | ||
*/ | ||
export type APIPrimaryEntryPointCommandDMInteraction = APIDMInteractionWrapper<APIPrimaryEntryPointCommandInteraction>; | ||
|
||
/** | ||
* https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object | ||
*/ | ||
export type APIPrimaryEntryPointCommandGuildInteraction = | ||
APIGuildInteractionWrapper<APIPrimaryEntryPointCommandInteraction>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
deno/payloads/v9/_interactions/_applicationCommands/entryPoint.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import type { APIApplicationCommandInteractionWrapper, ApplicationCommandType } from '../applicationCommands.ts'; | ||
import type { APIDMInteractionWrapper, APIGuildInteractionWrapper } from '../base.ts'; | ||
import type { APIBaseApplicationCommandInteractionData } from './internals.ts'; | ||
|
||
/** | ||
* https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-interaction-data | ||
*/ | ||
export type APIPrimaryEntryPointCommandInteractionData = | ||
APIBaseApplicationCommandInteractionData<ApplicationCommandType.PrimaryEntryPoint>; | ||
|
||
/** | ||
* https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object | ||
*/ | ||
export type APIPrimaryEntryPointCommandInteraction = | ||
APIApplicationCommandInteractionWrapper<APIPrimaryEntryPointCommandInteractionData>; | ||
|
||
/** | ||
* https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object | ||
*/ | ||
export type APIPrimaryEntryPointCommandDMInteraction = APIDMInteractionWrapper<APIPrimaryEntryPointCommandInteraction>; | ||
|
||
/** | ||
* https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object | ||
*/ | ||
export type APIPrimaryEntryPointCommandGuildInteraction = | ||
APIGuildInteractionWrapper<APIPrimaryEntryPointCommandInteraction>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
payloads/v10/_interactions/_applicationCommands/entryPoint.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import type { APIApplicationCommandInteractionWrapper, ApplicationCommandType } from '../applicationCommands'; | ||
import type { APIDMInteractionWrapper, APIGuildInteractionWrapper } from '../base'; | ||
import type { APIBaseApplicationCommandInteractionData } from './internals'; | ||
|
||
/** | ||
* https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-interaction-data | ||
*/ | ||
export type APIPrimaryEntryPointCommandInteractionData = | ||
APIBaseApplicationCommandInteractionData<ApplicationCommandType.PrimaryEntryPoint>; | ||
|
||
/** | ||
* https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object | ||
*/ | ||
export type APIPrimaryEntryPointCommandInteraction = | ||
APIApplicationCommandInteractionWrapper<APIPrimaryEntryPointCommandInteractionData>; | ||
|
||
/** | ||
* https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object | ||
*/ | ||
export type APIPrimaryEntryPointCommandDMInteraction = APIDMInteractionWrapper<APIPrimaryEntryPointCommandInteraction>; | ||
|
||
/** | ||
* https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object | ||
*/ | ||
export type APIPrimaryEntryPointCommandGuildInteraction = | ||
APIGuildInteractionWrapper<APIPrimaryEntryPointCommandInteraction>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
payloads/v9/_interactions/_applicationCommands/entryPoint.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import type { APIApplicationCommandInteractionWrapper, ApplicationCommandType } from '../applicationCommands'; | ||
import type { APIDMInteractionWrapper, APIGuildInteractionWrapper } from '../base'; | ||
import type { APIBaseApplicationCommandInteractionData } from './internals'; | ||
|
||
/** | ||
* https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-interaction-data | ||
*/ | ||
export type APIPrimaryEntryPointCommandInteractionData = | ||
APIBaseApplicationCommandInteractionData<ApplicationCommandType.PrimaryEntryPoint>; | ||
|
||
/** | ||
* https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object | ||
*/ | ||
export type APIPrimaryEntryPointCommandInteraction = | ||
APIApplicationCommandInteractionWrapper<APIPrimaryEntryPointCommandInteractionData>; | ||
|
||
/** | ||
* https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object | ||
*/ | ||
export type APIPrimaryEntryPointCommandDMInteraction = APIDMInteractionWrapper<APIPrimaryEntryPointCommandInteraction>; | ||
|
||
/** | ||
* https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object | ||
*/ | ||
export type APIPrimaryEntryPointCommandGuildInteraction = | ||
APIGuildInteractionWrapper<APIPrimaryEntryPointCommandInteraction>; |
Oops, something went wrong.