Skip to content

Commit c2432d5

Browse files
fronkdevJiralite
andauthored
types: Add defaultValues to respective select menu components data (discordjs#10265)
* Update index.d.ts Added 'defaultValues' typings for ChannelSelectMenuComponentData, RoleSelectMenuComponentData, and UserSelectMenuComponentData. * Update index.d.ts Adding 'defaultValues' typing to MentionableSelectMenuComponentData * style: prettier --------- Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com>
1 parent 616208b commit c2432d5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

packages/discord.js/typings/index.d.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,8 @@ import {
178178
APIPoll,
179179
PollLayoutType,
180180
APIPollAnswer,
181+
APISelectMenuDefaultValue,
182+
SelectMenuDefaultValueType,
181183
} from 'discord-api-types/v10';
182184
import { ChildProcess } from 'node:child_process';
183185
import { EventEmitter } from 'node:events';
@@ -6367,19 +6369,25 @@ export interface StringSelectMenuComponentData extends BaseSelectMenuComponentDa
63676369

63686370
export interface UserSelectMenuComponentData extends BaseSelectMenuComponentData {
63696371
type: ComponentType.UserSelect;
6372+
defaultValues?: readonly APISelectMenuDefaultValue<SelectMenuDefaultValueType.User>[];
63706373
}
63716374

63726375
export interface RoleSelectMenuComponentData extends BaseSelectMenuComponentData {
63736376
type: ComponentType.RoleSelect;
6377+
defaultValues?: readonly APISelectMenuDefaultValue<SelectMenuDefaultValueType.Role>[];
63746378
}
63756379

63766380
export interface MentionableSelectMenuComponentData extends BaseSelectMenuComponentData {
63776381
type: ComponentType.MentionableSelect;
6382+
defaultValues?: readonly APISelectMenuDefaultValue<
6383+
SelectMenuDefaultValueType.Role | SelectMenuDefaultValueType.User
6384+
>[];
63786385
}
63796386

63806387
export interface ChannelSelectMenuComponentData extends BaseSelectMenuComponentData {
63816388
type: ComponentType.ChannelSelect;
63826389
channelTypes?: readonly ChannelType[];
6390+
defaultValues?: readonly APISelectMenuDefaultValue<SelectMenuDefaultValueType.Channel>[];
63836391
}
63846392

63856393
export interface MessageSelectOption {

0 commit comments

Comments
 (0)