Skip to content

Commit 9c850fb

Browse files
fbrettnichSnazzah
andauthored
chore(types): improve on select types (#643)
Co-authored-by: Snazzah <[email protected]>
1 parent 5ace362 commit 9c850fb

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/constants.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1279,31 +1279,29 @@ export interface ComponentSelectBase {
12791279
| ComponentType.CHANNEL_SELECT;
12801280
/** Optional component identifier */
12811281
id?: number;
1282-
/** The identifier of the of the menu. */
1282+
/** The identifier of the of the select. */
12831283
custom_id: string;
12841284
/** The string to show in absence of a selected option. */
12851285
placeholder?: string;
12861286
/** The minimum number of items to be chosen. */
12871287
min_values?: number;
12881288
/** The maximum number of items to be chosen. */
12891289
max_values?: number;
1290-
/** Whether this menu will show as disabled. */
1290+
/** Whether this select will show as disabled. */
12911291
disabled?: boolean;
12921292
}
12931293

12941294
export interface ComponentStringSelect extends ComponentSelectBase {
12951295
type: ComponentType.STRING_SELECT;
1296-
/** The options to show inside this menu. Only used for string selects. */
1296+
/** The options to show inside this select. */
12971297
options: ComponentSelectOption[];
12981298
/** Whether this component is required. Only used in modals. */
12991299
required?: boolean;
13001300
}
13011301

13021302
export interface ComponentChannelSelect extends ComponentSelectBase {
13031303
type: ComponentType.CHANNEL_SELECT;
1304-
/** The options to show inside this menu. Only used for string selects. */
1305-
options: ComponentSelectOption[];
1306-
/** An array of channel types this select can use. Only used for channel selects. */
1304+
/** An array of channel types this select can use. */
13071305
channel_types?: ChannelType[];
13081306
/** An array of default values. */
13091307
default_values?: SelectDefaultValue[];

0 commit comments

Comments
 (0)