Skip to content

Commit 42637b2

Browse files
committed
fix: sync channel
1 parent 9e7e225 commit 42637b2

File tree

1 file changed

+23
-11
lines changed

1 file changed

+23
-11
lines changed

payloads/v9/channel.ts

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2060,16 +2060,7 @@ export interface APISelectMenuOption {
20602060
default?: boolean;
20612061
}
20622062

2063-
/**
2064-
* Text Input is an interactive component that allows users to enter free-form text responses in modals. It supports both short, single-line inputs and longer, multi-line paragraph inputs.
2065-
*
2066-
* Text Inputs can only be used within modals and must be placed inside an Action Row.
2067-
*
2068-
* When defining a text input component, you can set attributes to customize the behavior and appearance of it. However, not all attributes will be returned in the text input interaction payload.
2069-
*
2070-
* @see {@link https://discord.com/developers/docs/components/reference#text-input}
2071-
*/
2072-
export interface APITextInputComponent extends APIBaseComponent<ComponentType.TextInput> {
2063+
export interface APIBaseTextInputComponent extends APIBaseComponent<ComponentType.TextInput> {
20732064
/**
20742065
* One of text input styles
20752066
*/
@@ -2104,6 +2095,27 @@ export interface APITextInputComponent extends APIBaseComponent<ComponentType.Te
21042095
required?: boolean;
21052096
}
21062097

2098+
/**
2099+
* Text Input is an interactive component that allows users to enter free-form text responses in modals. It supports both short, single-line inputs and longer, multi-line paragraph inputs.
2100+
*
2101+
* Text Inputs can only be used within modals and must be placed inside an Action Row.
2102+
*
2103+
* When defining a text input component, you can set attributes to customize the behavior and appearance of it. However, not all attributes will be returned in the text input interaction payload.
2104+
*
2105+
* @see {@link https://discord.com/developers/docs/components/reference#text-input}
2106+
*/
2107+
export interface APITextInputComponent extends APIBaseTextInputComponent {
2108+
/**
2109+
* Text that appears on top of the text input field, max 45 characters
2110+
*/
2111+
label: string;
2112+
}
2113+
2114+
/**
2115+
* A text input component that may be used in modals.
2116+
*/
2117+
export interface APITextInputComponentInModal extends APIBaseTextInputComponent {}
2118+
21072119
export enum UnfurledMediaItemLoadingState {
21082120
Unknown,
21092121
Loading,
@@ -2317,7 +2329,7 @@ export interface APIContainerComponent extends APIBaseComponent<ComponentType.Co
23172329
export interface APILabelComponent extends APIBaseComponent<ComponentType.Label> {
23182330
label: string;
23192331
description?: string;
2320-
component: APIStringSelectComponentInModal | APITextInputComponent;
2332+
component: APIStringSelectComponentInModal | APITextInputComponentInModal;
23212333
}
23222334

23232335
/**

0 commit comments

Comments
 (0)