Skip to content

Commit a4519b0

Browse files
authored
Allow autocomplete with minLength and maxLength (#272)
Stop making autocomplete and min/max mutually exclusive on app commands
1 parent e1eab0c commit a4519b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/types/applications.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ export type ApplicationCommandOptionsInteger = ApplicationCommandOptionBase<Appl
260260
export interface ApplicationCommandOptionsMentionable extends ApplicationCommandOptionBase<ApplicationCommandOptionTypes.MENTIONABLE> {}
261261
export type ApplicationCommandOptionsNumber = ApplicationCommandOptionBase<ApplicationCommandOptionTypes.NUMBER> & ExclusifyUnion<ApplicationCommandOptionsAutocomplete | ApplicationCommandOptionsMinMaxValue | ApplicationCommandOptionsChoices<ApplicationCommandOptionTypes.NUMBER>>;
262262
export interface ApplicationCommandOptionsRole extends ApplicationCommandOptionBase<ApplicationCommandOptionTypes.ROLE> {}
263-
export type ApplicationCommandOptionsString = ApplicationCommandOptionBase<ApplicationCommandOptionTypes.STRING> & ExclusifyUnion<ApplicationCommandOptionsAutocomplete | ApplicationCommandOptionsMinMaxLength | ApplicationCommandOptionsChoices<ApplicationCommandOptionTypes.STRING>>;
263+
export type ApplicationCommandOptionsString = ApplicationCommandOptionBase<ApplicationCommandOptionTypes.STRING> & ExclusifyUnion<(ApplicationCommandOptionsAutocomplete & ApplicationCommandOptionsMinMaxLength) | ApplicationCommandOptionsChoices<ApplicationCommandOptionTypes.STRING>>;
264264
export interface ApplicationCommandOptionsUser extends ApplicationCommandOptionBase<ApplicationCommandOptionTypes.USER> {}
265265

266266
// desc, options

0 commit comments

Comments
 (0)