Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

types: Add defaultValues to respective select menu components data #10265

Merged
merged 4 commits into from
May 13, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions packages/discord.js/typings/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -6364,10 +6366,12 @@ 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 {
fronkdev marked this conversation as resolved.
Show resolved Hide resolved
Expand All @@ -6377,6 +6381,7 @@ export interface MentionableSelectMenuComponentData extends BaseSelectMenuCompon
export interface ChannelSelectMenuComponentData extends BaseSelectMenuComponentData {
type: ComponentType.ChannelSelect;
channelTypes?: readonly ChannelType[];
defaultValues?: readonly APISelectMenuDefaultValue<SelectMenuDefaultValueType.Channel>[];
}

export interface MessageSelectOption {
Expand Down
Loading