@@ -13,7 +13,6 @@ import {
13
13
ModalActionRowComponentBuilder ,
14
14
ModalBuilder as BuildersModal ,
15
15
AnyComponentBuilder ,
16
- ComponentBuilder ,
17
16
type RestOrArray ,
18
17
ApplicationCommandOptionAllowedChannelTypes ,
19
18
} from '@discordjs/builders' ;
@@ -6506,7 +6505,7 @@ export interface InteractionCollectorOptions<
6506
6505
export interface InteractionDeferReplyOptions {
6507
6506
/** @deprecated Use {@link InteractionDeferReplyOptions.flags} instead. */
6508
6507
ephemeral ?: boolean ;
6509
- flags ?: BitFieldResolvable < Extract < MessageFlagsString , 'Ephemeral' > , MessageFlags . Ephemeral > ;
6508
+ flags ?: BitFieldResolvable < Extract < MessageFlagsString , 'Ephemeral' > , MessageFlags . Ephemeral > | undefined ;
6510
6509
withResponse ?: boolean ;
6511
6510
/** @deprecated Use {@link InteractionDeferReplyOptions.withResponse} instead. */
6512
6511
fetchReply ?: boolean ;
@@ -6525,10 +6524,12 @@ export interface InteractionReplyOptions extends BaseMessageOptionsWithPoll {
6525
6524
withResponse ?: boolean ;
6526
6525
/** @deprecated Use {@link InteractionReplyOptions.withResponse} instead. */
6527
6526
fetchReply ?: boolean ;
6528
- flags ?: BitFieldResolvable <
6529
- Extract < MessageFlagsString , 'Ephemeral' | 'SuppressEmbeds' | 'SuppressNotifications' > ,
6530
- MessageFlags . Ephemeral | MessageFlags . SuppressEmbeds | MessageFlags . SuppressNotifications
6531
- > ;
6527
+ flags ?:
6528
+ | BitFieldResolvable <
6529
+ Extract < MessageFlagsString , 'Ephemeral' | 'SuppressEmbeds' | 'SuppressNotifications' > ,
6530
+ MessageFlags . Ephemeral | MessageFlags . SuppressEmbeds | MessageFlags . SuppressNotifications
6531
+ >
6532
+ | undefined ;
6532
6533
}
6533
6534
6534
6535
export interface InteractionUpdateOptions extends MessageEditOptions {
@@ -6723,10 +6724,12 @@ export interface MessageCreateOptions extends BaseMessageOptionsWithPoll {
6723
6724
enforceNonce ?: boolean ;
6724
6725
reply ?: ReplyOptions ;
6725
6726
stickers ?: readonly StickerResolvable [ ] ;
6726
- flags ?: BitFieldResolvable <
6727
- Extract < MessageFlagsString , 'SuppressEmbeds' | 'SuppressNotifications' > ,
6728
- MessageFlags . SuppressEmbeds | MessageFlags . SuppressNotifications
6729
- > ;
6727
+ flags ?:
6728
+ | BitFieldResolvable <
6729
+ Extract < MessageFlagsString , 'SuppressEmbeds' | 'SuppressNotifications' > ,
6730
+ MessageFlags . SuppressEmbeds | MessageFlags . SuppressNotifications
6731
+ >
6732
+ | undefined ;
6730
6733
}
6731
6734
6732
6735
export interface GuildForumThreadMessageCreateOptions
@@ -6740,7 +6743,7 @@ export interface MessageEditAttachmentData {
6740
6743
export interface MessageEditOptions extends Omit < BaseMessageOptions , 'content' > {
6741
6744
content ?: string | null ;
6742
6745
attachments ?: readonly ( Attachment | MessageEditAttachmentData ) [ ] ;
6743
- flags ?: BitFieldResolvable < Extract < MessageFlagsString , 'SuppressEmbeds' > , MessageFlags . SuppressEmbeds > ;
6746
+ flags ?: BitFieldResolvable < Extract < MessageFlagsString , 'SuppressEmbeds' > , MessageFlags . SuppressEmbeds > | undefined ;
6744
6747
}
6745
6748
6746
6749
export type MessageReactionResolvable = MessageReaction | Snowflake | string ;
0 commit comments