From 7d6a934f66c2a2d063bae16eb6fb323022ece192 Mon Sep 17 00:00:00 2001 From: Qjuh <76154676+Qjuh@users.noreply.github.com> Date: Tue, 21 Oct 2025 05:32:03 +0200 Subject: [PATCH] fix: missing name and size property on APIFileComponent (#1404) --- deno/payloads/v10/message.ts | 10 ++++++++++ deno/payloads/v9/message.ts | 10 ++++++++++ payloads/v10/message.ts | 10 ++++++++++ payloads/v9/message.ts | 10 ++++++++++ 4 files changed, 40 insertions(+) diff --git a/deno/payloads/v10/message.ts b/deno/payloads/v10/message.ts index aef0c941..651510e6 100644 --- a/deno/payloads/v10/message.ts +++ b/deno/payloads/v10/message.ts @@ -1582,6 +1582,16 @@ export interface APIFileComponent extends APIBaseComponent { * @defaultValue `false` */ spoiler?: boolean; + + /** + * The name of the file. This field is ignored and provided by the API as part of the response + */ + name?: string; + + /** + * The size of the file in bytes. This field is ignored and provided by the API as part of the response + */ + size?: number; } /** diff --git a/deno/payloads/v9/message.ts b/deno/payloads/v9/message.ts index ad17cf6e..8bae7895 100644 --- a/deno/payloads/v9/message.ts +++ b/deno/payloads/v9/message.ts @@ -1577,6 +1577,16 @@ export interface APIFileComponent extends APIBaseComponent { * @defaultValue `false` */ spoiler?: boolean; + + /** + * The name of the file. This field is ignored and provided by the API as part of the response + */ + name?: string; + + /** + * The size of the file in bytes. This field is ignored and provided by the API as part of the response + */ + size?: number; } /** diff --git a/payloads/v10/message.ts b/payloads/v10/message.ts index 77bba110..244bf368 100644 --- a/payloads/v10/message.ts +++ b/payloads/v10/message.ts @@ -1582,6 +1582,16 @@ export interface APIFileComponent extends APIBaseComponent { * @defaultValue `false` */ spoiler?: boolean; + + /** + * The name of the file. This field is ignored and provided by the API as part of the response + */ + name?: string; + + /** + * The size of the file in bytes. This field is ignored and provided by the API as part of the response + */ + size?: number; } /** diff --git a/payloads/v9/message.ts b/payloads/v9/message.ts index 09885772..957368ce 100644 --- a/payloads/v9/message.ts +++ b/payloads/v9/message.ts @@ -1577,6 +1577,16 @@ export interface APIFileComponent extends APIBaseComponent { * @defaultValue `false` */ spoiler?: boolean; + + /** + * The name of the file. This field is ignored and provided by the API as part of the response + */ + name?: string; + + /** + * The size of the file in bytes. This field is ignored and provided by the API as part of the response + */ + size?: number; } /**