diff --git a/deno/payloads/v10/message.ts b/deno/payloads/v10/message.ts index 6616c62c..d8f472d1 100644 --- a/deno/payloads/v10/message.ts +++ b/deno/payloads/v10/message.ts @@ -810,7 +810,10 @@ export interface APIAttachment { */ filename: string; /** - * The title of the file + * The original filename of the upload with special characters preserved + * + * This will be present when the filename contains special characters (e.g. Cyrillic), + * in which case the `filename` field will be a sanitized version without those characters */ title?: string; /** diff --git a/deno/payloads/v9/message.ts b/deno/payloads/v9/message.ts index 2d4c42d6..3c525782 100644 --- a/deno/payloads/v9/message.ts +++ b/deno/payloads/v9/message.ts @@ -805,7 +805,10 @@ export interface APIAttachment { */ filename: string; /** - * The title of the file + * The original filename of the upload with special characters preserved + * + * This will be present when the filename contains special characters (e.g. Cyrillic), + * in which case the `filename` field will be a sanitized version without those characters */ title?: string; /** diff --git a/payloads/v10/message.ts b/payloads/v10/message.ts index 3e012630..b44c8045 100644 --- a/payloads/v10/message.ts +++ b/payloads/v10/message.ts @@ -810,7 +810,10 @@ export interface APIAttachment { */ filename: string; /** - * The title of the file + * The original filename of the upload with special characters preserved + * + * This will be present when the filename contains special characters (e.g. Cyrillic), + * in which case the `filename` field will be a sanitized version without those characters */ title?: string; /** diff --git a/payloads/v9/message.ts b/payloads/v9/message.ts index d507ea02..7729ff99 100644 --- a/payloads/v9/message.ts +++ b/payloads/v9/message.ts @@ -805,7 +805,10 @@ export interface APIAttachment { */ filename: string; /** - * The title of the file + * The original filename of the upload with special characters preserved + * + * This will be present when the filename contains special characters (e.g. Cyrillic), + * in which case the `filename` field will be a sanitized version without those characters */ title?: string; /**