Skip to content

Commit 7d6a934

Browse files
authored
fix: missing name and size property on APIFileComponent (#1404)
1 parent 9347651 commit 7d6a934

File tree

4 files changed

+40
-0
lines changed

4 files changed

+40
-0
lines changed

deno/payloads/v10/message.ts

Lines changed: 10 additions & 0 deletions
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: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

payloads/v10/message.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1582,6 +1582,16 @@ export interface APIFileComponent extends APIBaseComponent<ComponentType.File> {
15821582
* @defaultValue `false`
15831583
*/
15841584
spoiler?: boolean;
1585+
1586+
/**
1587+
* The name of the file. This field is ignored and provided by the API as part of the response
1588+
*/
1589+
name?: string;
1590+
1591+
/**
1592+
* The size of the file in bytes. This field is ignored and provided by the API as part of the response
1593+
*/
1594+
size?: number;
15851595
}
15861596

15871597
/**

payloads/v9/message.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1577,6 +1577,16 @@ export interface APIFileComponent extends APIBaseComponent<ComponentType.File> {
15771577
* @defaultValue `false`
15781578
*/
15791579
spoiler?: boolean;
1580+
1581+
/**
1582+
* The name of the file. This field is ignored and provided by the API as part of the response
1583+
*/
1584+
name?: string;
1585+
1586+
/**
1587+
* The size of the file in bytes. This field is ignored and provided by the API as part of the response
1588+
*/
1589+
size?: number;
15801590
}
15811591

15821592
/**

0 commit comments

Comments
 (0)