mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-18 04:23:31 +01:00
types: add undefined to flags for exactOptionalPropertyTypes (#10707)
This commit is contained in:
25
packages/discord.js/typings/index.d.ts
vendored
25
packages/discord.js/typings/index.d.ts
vendored
@@ -13,7 +13,6 @@ import {
|
|||||||
ModalActionRowComponentBuilder,
|
ModalActionRowComponentBuilder,
|
||||||
ModalBuilder as BuildersModal,
|
ModalBuilder as BuildersModal,
|
||||||
AnyComponentBuilder,
|
AnyComponentBuilder,
|
||||||
ComponentBuilder,
|
|
||||||
type RestOrArray,
|
type RestOrArray,
|
||||||
ApplicationCommandOptionAllowedChannelTypes,
|
ApplicationCommandOptionAllowedChannelTypes,
|
||||||
} from '@discordjs/builders';
|
} from '@discordjs/builders';
|
||||||
@@ -6506,7 +6505,7 @@ export interface InteractionCollectorOptions<
|
|||||||
export interface InteractionDeferReplyOptions {
|
export interface InteractionDeferReplyOptions {
|
||||||
/** @deprecated Use {@link InteractionDeferReplyOptions.flags} instead. */
|
/** @deprecated Use {@link InteractionDeferReplyOptions.flags} instead. */
|
||||||
ephemeral?: boolean;
|
ephemeral?: boolean;
|
||||||
flags?: BitFieldResolvable<Extract<MessageFlagsString, 'Ephemeral'>, MessageFlags.Ephemeral>;
|
flags?: BitFieldResolvable<Extract<MessageFlagsString, 'Ephemeral'>, MessageFlags.Ephemeral> | undefined;
|
||||||
withResponse?: boolean;
|
withResponse?: boolean;
|
||||||
/** @deprecated Use {@link InteractionDeferReplyOptions.withResponse} instead. */
|
/** @deprecated Use {@link InteractionDeferReplyOptions.withResponse} instead. */
|
||||||
fetchReply?: boolean;
|
fetchReply?: boolean;
|
||||||
@@ -6525,10 +6524,12 @@ export interface InteractionReplyOptions extends BaseMessageOptionsWithPoll {
|
|||||||
withResponse?: boolean;
|
withResponse?: boolean;
|
||||||
/** @deprecated Use {@link InteractionReplyOptions.withResponse} instead. */
|
/** @deprecated Use {@link InteractionReplyOptions.withResponse} instead. */
|
||||||
fetchReply?: boolean;
|
fetchReply?: boolean;
|
||||||
flags?: BitFieldResolvable<
|
flags?:
|
||||||
Extract<MessageFlagsString, 'Ephemeral' | 'SuppressEmbeds' | 'SuppressNotifications'>,
|
| BitFieldResolvable<
|
||||||
MessageFlags.Ephemeral | MessageFlags.SuppressEmbeds | MessageFlags.SuppressNotifications
|
Extract<MessageFlagsString, 'Ephemeral' | 'SuppressEmbeds' | 'SuppressNotifications'>,
|
||||||
>;
|
MessageFlags.Ephemeral | MessageFlags.SuppressEmbeds | MessageFlags.SuppressNotifications
|
||||||
|
>
|
||||||
|
| undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface InteractionUpdateOptions extends MessageEditOptions {
|
export interface InteractionUpdateOptions extends MessageEditOptions {
|
||||||
@@ -6723,10 +6724,12 @@ export interface MessageCreateOptions extends BaseMessageOptionsWithPoll {
|
|||||||
enforceNonce?: boolean;
|
enforceNonce?: boolean;
|
||||||
reply?: ReplyOptions;
|
reply?: ReplyOptions;
|
||||||
stickers?: readonly StickerResolvable[];
|
stickers?: readonly StickerResolvable[];
|
||||||
flags?: BitFieldResolvable<
|
flags?:
|
||||||
Extract<MessageFlagsString, 'SuppressEmbeds' | 'SuppressNotifications'>,
|
| BitFieldResolvable<
|
||||||
MessageFlags.SuppressEmbeds | MessageFlags.SuppressNotifications
|
Extract<MessageFlagsString, 'SuppressEmbeds' | 'SuppressNotifications'>,
|
||||||
>;
|
MessageFlags.SuppressEmbeds | MessageFlags.SuppressNotifications
|
||||||
|
>
|
||||||
|
| undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface GuildForumThreadMessageCreateOptions
|
export interface GuildForumThreadMessageCreateOptions
|
||||||
@@ -6740,7 +6743,7 @@ export interface MessageEditAttachmentData {
|
|||||||
export interface MessageEditOptions extends Omit<BaseMessageOptions, 'content'> {
|
export interface MessageEditOptions extends Omit<BaseMessageOptions, 'content'> {
|
||||||
content?: string | null;
|
content?: string | null;
|
||||||
attachments?: readonly (Attachment | MessageEditAttachmentData)[];
|
attachments?: readonly (Attachment | MessageEditAttachmentData)[];
|
||||||
flags?: BitFieldResolvable<Extract<MessageFlagsString, 'SuppressEmbeds'>, MessageFlags.SuppressEmbeds>;
|
flags?: BitFieldResolvable<Extract<MessageFlagsString, 'SuppressEmbeds'>, MessageFlags.SuppressEmbeds> | undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
export type MessageReactionResolvable = MessageReaction | Snowflake | string;
|
export type MessageReactionResolvable = MessageReaction | Snowflake | string;
|
||||||
|
|||||||
Reference in New Issue
Block a user