-
-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a787426
commit 0aa5841
Showing
14 changed files
with
140 additions
and
6 deletions.
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
deno/payloads/v9/_interactions/_applicationCommands/chatInput-test.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,8 @@ | ||
/* eslint-disable @typescript-eslint/no-unused-vars */ | ||
import { APIApplicationCommandOption, ApplicationCommandOptionType } from './chatInput.ts'; | ||
|
||
const data: APIApplicationCommandOption = { | ||
type: ApplicationCommandOptionType.Number, | ||
name: 'test', | ||
description: 'test', | ||
}; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import type { APIBaseInteraction, ApplicationCommandOptionType, InteractionType } from '../mod.ts'; | ||
|
||
export type APICommandAutocompleteInteraction = APIBaseInteraction< | ||
InteractionType.ApplicationCommandAutocomplete, | ||
APICommandAutocompleteInteractionData | ||
>; | ||
|
||
export interface APICommandAutocompleteInteractionData { | ||
/** | ||
* The name of the parameter | ||
*/ | ||
name: string; | ||
/** | ||
* Value of application command option type | ||
*/ | ||
type: ApplicationCommandOptionType; | ||
/** | ||
* Value of the command option | ||
*/ | ||
value?: string; | ||
/** | ||
* Whether the field is focused by the user | ||
*/ | ||
focused: boolean; | ||
} |
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
8 changes: 8 additions & 0 deletions
8
payloads/v9/_interactions/_applicationCommands/chatInput-test.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,8 @@ | ||
/* eslint-disable @typescript-eslint/no-unused-vars */ | ||
import { APIApplicationCommandOption, ApplicationCommandOptionType } from './chatInput'; | ||
|
||
const data: APIApplicationCommandOption = { | ||
type: ApplicationCommandOptionType.Number, | ||
name: 'test', | ||
description: 'test', | ||
}; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import type { APIBaseInteraction, ApplicationCommandOptionType, InteractionType } from '..'; | ||
|
||
export type APICommandAutocompleteInteraction = APIBaseInteraction< | ||
InteractionType.ApplicationCommandAutocomplete, | ||
APICommandAutocompleteInteractionData | ||
>; | ||
|
||
export interface APICommandAutocompleteInteractionData { | ||
/** | ||
* The name of the parameter | ||
*/ | ||
name: string; | ||
/** | ||
* Value of application command option type | ||
*/ | ||
type: ApplicationCommandOptionType; | ||
/** | ||
* Value of the command option | ||
*/ | ||
value?: string; | ||
/** | ||
* Whether the field is focused by the user | ||
*/ | ||
focused: boolean; | ||
} |
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