mirror of
https://github.com/discordjs/discord.js.git
synced 2024-07-08 01:01:19 +12:00
types: Add defaultValues
to respective select menu components data (#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>
This commit is contained in:
parent
616208ba77
commit
c2432d5704
8
packages/discord.js/typings/index.d.ts
vendored
8
packages/discord.js/typings/index.d.ts
vendored
|
@ -178,6 +178,8 @@ import {
|
|||
APIPoll,
|
||||
PollLayoutType,
|
||||
APIPollAnswer,
|
||||
APISelectMenuDefaultValue,
|
||||
SelectMenuDefaultValueType,
|
||||
} from 'discord-api-types/v10';
|
||||
import { ChildProcess } from 'node:child_process';
|
||||
import { EventEmitter } from 'node:events';
|
||||
|
@ -6367,19 +6369,25 @@ export interface StringSelectMenuComponentData extends BaseSelectMenuComponentDa
|
|||
|
||||
export interface UserSelectMenuComponentData extends BaseSelectMenuComponentData {
|
||||
type: ComponentType.UserSelect;
|
||||
defaultValues?: readonly APISelectMenuDefaultValue<SelectMenuDefaultValueType.User>[];
|
||||
}
|
||||
|
||||
export interface RoleSelectMenuComponentData extends BaseSelectMenuComponentData {
|
||||
type: ComponentType.RoleSelect;
|
||||
defaultValues?: readonly APISelectMenuDefaultValue<SelectMenuDefaultValueType.Role>[];
|
||||
}
|
||||
|
||||
export interface MentionableSelectMenuComponentData extends BaseSelectMenuComponentData {
|
||||
type: ComponentType.MentionableSelect;
|
||||
defaultValues?: readonly APISelectMenuDefaultValue<
|
||||
SelectMenuDefaultValueType.Role | SelectMenuDefaultValueType.User
|
||||
>[];
|
||||
}
|
||||
|
||||
export interface ChannelSelectMenuComponentData extends BaseSelectMenuComponentData {
|
||||
type: ComponentType.ChannelSelect;
|
||||
channelTypes?: readonly ChannelType[];
|
||||
defaultValues?: readonly APISelectMenuDefaultValue<SelectMenuDefaultValueType.Channel>[];
|
||||
}
|
||||
|
||||
export interface MessageSelectOption {
|
||||
|
|
Loading…
Reference in a new issue