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

fix(Typings): type attachments to InteractionUpdateOptions #6162

Merged
merged 4 commits into from Jul 23, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions typings/index.d.ts
Expand Up @@ -3694,7 +3694,7 @@ export type InteractionResponseType = keyof typeof InteractionResponseTypes;

export type InteractionType = keyof typeof InteractionTypes;

export type InteractionUpdateOptions = Omit<InteractionReplyOptions, 'ephemeral'>;
export type InteractionUpdateOptions = MessageEditOptions;
Milo123459 marked this conversation as resolved.
Show resolved Hide resolved

export type IntentsString =
| 'GUILDS'
Expand Down Expand Up @@ -3810,7 +3810,7 @@ export type MessageComponentType = keyof typeof MessageComponentTypes;
export type MessageComponentTypeResolvable = MessageComponentType | MessageComponentTypes;

export interface MessageEditOptions {
attachments?: (MessageAttachment | never)[];
attachments?: MessageAttachment[];
content?: string | null;
embeds?: (MessageEmbed | MessageEmbedOptions)[] | null;
files?: (FileOptions | BufferResolvable | Stream | MessageAttachment)[];
Expand Down