mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
types: add missing BaseMessageCreateOptions (#10833)
* types: add missing BaseMessageCreateOptions * build: trigger tests --------- Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> Co-authored-by: almeidx <github@almeidx.dev>
This commit is contained in:
14
packages/discord.js/typings/index.d.ts
vendored
14
packages/discord.js/typings/index.d.ts
vendored
@@ -6241,11 +6241,10 @@ export interface BaseMessageOptionsWithPoll extends BaseMessageOptions {
|
||||
poll?: JSONEncodable<RESTAPIPoll> | PollData;
|
||||
}
|
||||
|
||||
export interface MessageCreateOptions extends BaseMessageOptionsWithPoll {
|
||||
export interface BaseMessageCreateOptions extends BaseMessageOptionsWithPoll {
|
||||
tts?: boolean;
|
||||
nonce?: string | number;
|
||||
enforceNonce?: boolean;
|
||||
messageReference?: MessageReferenceOptions;
|
||||
stickers?: readonly StickerResolvable[];
|
||||
flags?:
|
||||
| BitFieldResolvable<
|
||||
@@ -6255,9 +6254,13 @@ export interface MessageCreateOptions extends BaseMessageOptionsWithPoll {
|
||||
| undefined;
|
||||
}
|
||||
|
||||
export interface MessageCreateOptions extends BaseMessageCreateOptions {
|
||||
messageReference?: MessageReferenceOptions;
|
||||
}
|
||||
|
||||
export interface GuildForumThreadMessageCreateOptions
|
||||
extends BaseMessageOptions,
|
||||
Pick<MessageCreateOptions, 'flags' | 'stickers'> {}
|
||||
Pick<BaseMessageCreateOptions, 'flags' | 'stickers'> {}
|
||||
|
||||
export interface MessageEditAttachmentData {
|
||||
id: Snowflake;
|
||||
@@ -6525,7 +6528,7 @@ export interface ReactionCollectorOptions extends CollectorOptions<[MessageReact
|
||||
maxUsers?: number;
|
||||
}
|
||||
|
||||
export interface MessageReplyOptions extends Omit<MessageCreateOptions, 'messageReference'> {
|
||||
export interface MessageReplyOptions extends BaseMessageCreateOptions {
|
||||
failIfNotExists?: boolean;
|
||||
}
|
||||
|
||||
@@ -6805,8 +6808,7 @@ export interface WebhookFetchMessageOptions {
|
||||
threadId?: Snowflake;
|
||||
}
|
||||
|
||||
export interface WebhookMessageCreateOptions
|
||||
extends Omit<MessageCreateOptions, 'nonce' | 'messageReference' | 'stickers'> {
|
||||
export interface WebhookMessageCreateOptions extends Omit<BaseMessageCreateOptions, 'nonce' | 'stickers'> {
|
||||
username?: string;
|
||||
avatarURL?: string;
|
||||
threadId?: Snowflake;
|
||||
|
||||
Reference in New Issue
Block a user