Skip to content

Commit 06a75e8

Browse files
docs: clarify wording for maximum values (#11231)
* docs(FileUpload): clarify wording * chore: missed instances --------- Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
1 parent f26a5ed commit 06a75e8

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

packages/builders/src/components/fileUpload/FileUpload.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export class FileUploadBuilder extends ComponentBuilder<APIFileUploadComponent>
7272
/**
7373
* Sets the maximum number of file uploads required.
7474
*
75-
* @param maxValues - The maximum values that must be uploaded
75+
* @param maxValues - The maximum values that can be uploaded
7676
*/
7777
public setMaxValues(maxValues: number) {
7878
this.data.max_values = maxValues;

packages/builders/src/components/selectMenu/BaseSelectMenu.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export abstract class BaseSelectMenuBuilder<Data extends APISelectMenuComponent>
4949
/**
5050
* Sets the maximum values that must be selected in the select menu.
5151
*
52-
* @param maxValues - The maximum values that must be selected
52+
* @param maxValues - The maximum values that can be selected
5353
*/
5454
public setMaxValues(maxValues: number) {
5555
this.data.max_values = maxValues;

packages/discord.js/src/util/Components.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ const { ComponentType } = require('discord-api-types/v10');
4747
/**
4848
* @typedef {BaseComponentData} FileUploadComponentData
4949
* @property {string} customId The custom id of the file upload
50-
* @property {number} [minValues] The minimum number of files that can be uploaded (0-10)
50+
* @property {number} [minValues] The minimum number of files that must be uploaded (0-10)
5151
* @property {number} [maxValues] The maximum number of files that can be uploaded (1-10)
5252
* @property {boolean} [required] Whether this component is required in modals
5353
*/
@@ -57,7 +57,7 @@ const { ComponentType } = require('discord-api-types/v10');
5757
* @property {string} customId The custom id of the select menu
5858
* @property {boolean} [disabled] Whether the select menu is disabled or not
5959
* @property {number} [maxValues] The maximum amount of options that can be selected
60-
* @property {number} [minValues] The minimum amount of options that can be selected
60+
* @property {number} [minValues] The minimum amount of options that must be selected
6161
* @property {string} [placeholder] The placeholder of the select menu
6262
* @property {boolean} [required] Whether this component is required in modals
6363
*/

0 commit comments

Comments
 (0)