fix(APISelectMenuComponenet): make options field optional (#209)

This commit is contained in:
Shubham Parihar
2021-09-29 21:50:56 +05:30
committed by GitHub
parent 68d97aed14
commit 0c592a0950
4 changed files with 4 additions and 4 deletions

View File

@@ -1023,7 +1023,7 @@ export interface APISelectMenuComponent extends APIBaseMessageComponent<Componen
/**
* The choices in the select, max 25
*/
options: APISelectMenuOption[];
options?: APISelectMenuOption[];
/**
* Custom placeholder text if nothing is selected, max 100 characters
*/

View File

@@ -1152,7 +1152,7 @@ export interface APISelectMenuComponent extends APIBaseMessageComponent<Componen
/**
* The choices in the select, max 25
*/
options: APISelectMenuOption[];
options?: APISelectMenuOption[];
/**
* Custom placeholder text if nothing is selected, max 100 characters
*/

View File

@@ -1023,7 +1023,7 @@ export interface APISelectMenuComponent extends APIBaseMessageComponent<Componen
/**
* The choices in the select, max 25
*/
options: APISelectMenuOption[];
options?: APISelectMenuOption[];
/**
* Custom placeholder text if nothing is selected, max 100 characters
*/

View File

@@ -1152,7 +1152,7 @@ export interface APISelectMenuComponent extends APIBaseMessageComponent<Componen
/**
* The choices in the select, max 25
*/
options: APISelectMenuOption[];
options?: APISelectMenuOption[];
/**
* Custom placeholder text if nothing is selected, max 100 characters
*/