diff --git a/deno/payloads/v10/_interactions/_applicationCommands/_chatInput/attachment.ts b/deno/payloads/v10/_interactions/_applicationCommands/_chatInput/attachment.ts index f1e4b935..13a5c1f3 100644 --- a/deno/payloads/v10/_interactions/_applicationCommands/_chatInput/attachment.ts +++ b/deno/payloads/v10/_interactions/_applicationCommands/_chatInput/attachment.ts @@ -2,8 +2,11 @@ import type { Snowflake } from '../../../../../globals.ts'; import type { APIApplicationCommandOptionBase, APIInteractionDataOptionBase } from './base.ts'; import type { ApplicationCommandOptionType } from './shared.ts'; -export type APIApplicationCommandAttachmentOption = - APIApplicationCommandOptionBase; +export type FileUploadType = 'audio' | 'image' | 'video' | `.${string}`; + +export interface APIApplicationCommandAttachmentOption extends APIApplicationCommandOptionBase { + file_types?: FileUploadType[]; +} export type APIApplicationCommandInteractionDataAttachmentOption = APIInteractionDataOptionBase< ApplicationCommandOptionType.Attachment, diff --git a/deno/payloads/v10/message.ts b/deno/payloads/v10/message.ts index 1f902b9c..048729bf 100644 --- a/deno/payloads/v10/message.ts +++ b/deno/payloads/v10/message.ts @@ -5,7 +5,12 @@ import type { _NonNullableFields } from '../../utils/internals.ts'; import type { APIApplication } from './application.ts'; import type { APIChannel, APIThreadChannel, APIThreadMember, ChannelType } from './channel.ts'; import type { APIPartialEmoji } from './emoji.ts'; -import type { APIInteractionDataResolved, APIMessageInteraction, APIMessageInteractionMetadata } from './interactions.ts'; +import type { + APIInteractionDataResolved, + APIMessageInteraction, + APIMessageInteractionMetadata, + FileUploadType, +} from './interactions.ts'; import type { APIRole } from './permissions.ts'; import type { APIPoll } from './poll.ts'; import type { APISticker, APIStickerItem } from './sticker.ts'; @@ -1890,6 +1895,13 @@ export interface APIFileUploadComponent extends APIBaseComponent; +export type FileUploadType = 'audio' | 'image' | 'video' | `.${string}`; + +export interface APIApplicationCommandAttachmentOption extends APIApplicationCommandOptionBase { + file_types?: FileUploadType[]; +} export type APIApplicationCommandInteractionDataAttachmentOption = APIInteractionDataOptionBase< ApplicationCommandOptionType.Attachment, diff --git a/deno/payloads/v9/message.ts b/deno/payloads/v9/message.ts index 33ce3b80..4d70d63e 100644 --- a/deno/payloads/v9/message.ts +++ b/deno/payloads/v9/message.ts @@ -5,7 +5,12 @@ import type { _NonNullableFields } from '../../utils/internals.ts'; import type { APIApplication } from './application.ts'; import type { APIChannel, APIThreadChannel, APIThreadMember, ChannelType } from './channel.ts'; import type { APIPartialEmoji } from './emoji.ts'; -import type { APIInteractionDataResolved, APIMessageInteraction, APIMessageInteractionMetadata } from './interactions.ts'; +import type { + APIInteractionDataResolved, + APIMessageInteraction, + APIMessageInteractionMetadata, + FileUploadType, +} from './interactions.ts'; import type { APIRole } from './permissions.ts'; import type { APIPoll } from './poll.ts'; import type { APISticker, APIStickerItem } from './sticker.ts'; @@ -1885,6 +1890,13 @@ export interface APIFileUploadComponent extends APIBaseComponent; +export type FileUploadType = 'audio' | 'image' | 'video' | `.${string}`; + +export interface APIApplicationCommandAttachmentOption extends APIApplicationCommandOptionBase { + file_types?: FileUploadType[]; +} export type APIApplicationCommandInteractionDataAttachmentOption = APIInteractionDataOptionBase< ApplicationCommandOptionType.Attachment, diff --git a/payloads/v10/message.ts b/payloads/v10/message.ts index 2c889e6f..b84eaf7d 100644 --- a/payloads/v10/message.ts +++ b/payloads/v10/message.ts @@ -5,7 +5,12 @@ import type { _NonNullableFields } from '../../utils/internals'; import type { APIApplication } from './application'; import type { APIChannel, APIThreadChannel, APIThreadMember, ChannelType } from './channel'; import type { APIPartialEmoji } from './emoji'; -import type { APIInteractionDataResolved, APIMessageInteraction, APIMessageInteractionMetadata } from './interactions'; +import type { + APIInteractionDataResolved, + APIMessageInteraction, + APIMessageInteractionMetadata, + FileUploadType, +} from './interactions'; import type { APIRole } from './permissions'; import type { APIPoll } from './poll'; import type { APISticker, APIStickerItem } from './sticker'; @@ -1890,6 +1895,13 @@ export interface APIFileUploadComponent extends APIBaseComponent; +export type FileUploadType = 'audio' | 'image' | 'video' | `.${string}`; + +export interface APIApplicationCommandAttachmentOption extends APIApplicationCommandOptionBase { + file_types?: FileUploadType[]; +} export type APIApplicationCommandInteractionDataAttachmentOption = APIInteractionDataOptionBase< ApplicationCommandOptionType.Attachment, diff --git a/payloads/v9/message.ts b/payloads/v9/message.ts index c329a1f9..ec01aa8e 100644 --- a/payloads/v9/message.ts +++ b/payloads/v9/message.ts @@ -5,7 +5,12 @@ import type { _NonNullableFields } from '../../utils/internals'; import type { APIApplication } from './application'; import type { APIChannel, APIThreadChannel, APIThreadMember, ChannelType } from './channel'; import type { APIPartialEmoji } from './emoji'; -import type { APIInteractionDataResolved, APIMessageInteraction, APIMessageInteractionMetadata } from './interactions'; +import type { + APIInteractionDataResolved, + APIMessageInteraction, + APIMessageInteractionMetadata, + FileUploadType, +} from './interactions'; import type { APIRole } from './permissions'; import type { APIPoll } from './poll'; import type { APISticker, APIStickerItem } from './sticker'; @@ -1885,6 +1890,13 @@ export interface APIFileUploadComponent extends APIBaseComponent