Skip to content

Commit 5b82aa5

Browse files
CopilotJiralitealmeidx
authored
docs(APIAttachment): clarify title field distinction from filename (#1450)
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com> Co-authored-by: almeidx <42935195+almeidx@users.noreply.github.com> Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
1 parent 5a4c4af commit 5b82aa5

File tree

4 files changed

+16
-4
lines changed

4 files changed

+16
-4
lines changed

deno/payloads/v10/message.ts

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

deno/payloads/v9/message.ts

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

payloads/v10/message.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -810,7 +810,10 @@ export interface APIAttachment {
810810
*/
811811
filename: string;
812812
/**
813-
* The title of the file
813+
* The original filename of the upload with special characters preserved
814+
*
815+
* This will be present when the filename contains special characters (e.g. Cyrillic),
816+
* in which case the `filename` field will be a sanitized version without those characters
814817
*/
815818
title?: string;
816819
/**

payloads/v9/message.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -805,7 +805,10 @@ export interface APIAttachment {
805805
*/
806806
filename: string;
807807
/**
808-
* The title of the file
808+
* The original filename of the upload with special characters preserved
809+
*
810+
* This will be present when the filename contains special characters (e.g. Cyrillic),
811+
* in which case the `filename` field will be a sanitized version without those characters
809812
*/
810813
title?: string;
811814
/**

0 commit comments

Comments
 (0)