Skip to content

Commit 241d24c

Browse files
committed
fix: move required up the chain
1 parent 862f4ca commit 241d24c

File tree

4 files changed

+24
-48
lines changed

4 files changed

+24
-48
lines changed

deno/payloads/v10/channel.ts

Lines changed: 6 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

deno/payloads/v9/channel.ts

Lines changed: 6 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

payloads/v10/channel.ts

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1898,6 +1898,12 @@ export interface APIBaseSelectMenuComponent<
18981898
* @defaultValue `false`
18991899
*/
19001900
disabled?: boolean;
1901+
/**
1902+
* Whether the component is required to answer in a modal.
1903+
*
1904+
* @defaultValue `true`
1905+
*/
1906+
required?: boolean;
19011907
}
19021908

19031909
/**
@@ -1915,12 +1921,6 @@ export interface APIBaseAutoPopulatedSelectMenuComponent<
19151921
* List of default values for auto-populated select menu components
19161922
*/
19171923
default_values?: APISelectMenuDefaultValue<D>[];
1918-
/**
1919-
* Whether the component is required to answer in a modal.
1920-
*
1921-
* @defaultValue `true`
1922-
*/
1923-
required?: boolean;
19241924
}
19251925

19261926
/**
@@ -1937,12 +1937,6 @@ export interface APIStringSelectComponent extends APIBaseSelectMenuComponent<Com
19371937
* Specified choices in a select menu; max 25
19381938
*/
19391939
options: APISelectMenuOption[];
1940-
/**
1941-
* Whether the string select is required to answer in a modal.
1942-
*
1943-
* @defaultValue `true`
1944-
*/
1945-
required?: boolean;
19461940
}
19471941

19481942
/**

payloads/v9/channel.ts

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1897,6 +1897,12 @@ export interface APIBaseSelectMenuComponent<
18971897
* @defaultValue `false`
18981898
*/
18991899
disabled?: boolean;
1900+
/**
1901+
* Whether the component is required to answer in a modal.
1902+
*
1903+
* @defaultValue `true`
1904+
*/
1905+
required?: boolean;
19001906
}
19011907

19021908
/**
@@ -1914,12 +1920,6 @@ export interface APIBaseAutoPopulatedSelectMenuComponent<
19141920
* List of default values for auto-populated select menu components
19151921
*/
19161922
default_values?: APISelectMenuDefaultValue<D>[];
1917-
/**
1918-
* Whether the component is required to answer in a modal.
1919-
*
1920-
* @defaultValue `true`
1921-
*/
1922-
required?: boolean;
19231923
}
19241924

19251925
/**
@@ -1936,12 +1936,6 @@ export interface APIStringSelectComponent extends APIBaseSelectMenuComponent<Com
19361936
* Specified choices in a select menu; max 25
19371937
*/
19381938
options: APISelectMenuOption[];
1939-
/**
1940-
* Whether the string select is required to answer in a modal.
1941-
*
1942-
* @defaultValue `true`
1943-
*/
1944-
required?: boolean;
19451939
}
19461940

19471941
/**

0 commit comments

Comments
 (0)