mirror of
https://github.com/discordeno/discordeno.git
synced 2026-05-21 02:40:08 +00:00
fix!: mark FileComponent name, size fields as optional (#4960)
Co-authored-by: Fleny <Fleny113@outlook.com>
This commit is contained in:
@@ -650,9 +650,9 @@ export interface DiscordFileComponent extends DiscordBaseComponent {
|
|||||||
/** Whether the media should be a spoiler (or blurred out). Defaults to `false` */
|
/** Whether the media should be a spoiler (or blurred out). Defaults to `false` */
|
||||||
spoiler?: boolean;
|
spoiler?: boolean;
|
||||||
/** The name of the file. This field is ignored and provided by the API as part of the response */
|
/** The name of the file. This field is ignored and provided by the API as part of the response */
|
||||||
name: string;
|
name?: string;
|
||||||
/** The size of the file in bytes. This field is ignored and provided by the API as part of the response */
|
/** The size of the file in bytes. This field is ignored and provided by the API as part of the response */
|
||||||
size: number;
|
size?: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** https://docs.discord.com/developers/components/reference#separator-separator-structure */
|
/** https://docs.discord.com/developers/components/reference#separator-separator-structure */
|
||||||
|
|||||||
@@ -390,9 +390,9 @@ export interface FileComponent extends BaseComponent {
|
|||||||
/** Whether the media should be a spoiler (or blurred out). Defaults to `false` */
|
/** Whether the media should be a spoiler (or blurred out). Defaults to `false` */
|
||||||
spoiler?: boolean;
|
spoiler?: boolean;
|
||||||
/** The name of the file. This field is ignored and provided by the API as part of the response */
|
/** The name of the file. This field is ignored and provided by the API as part of the response */
|
||||||
name: string;
|
name?: string;
|
||||||
/** The size of the file in bytes. This field is ignored and provided by the API as part of the response */
|
/** The size of the file in bytes. This field is ignored and provided by the API as part of the response */
|
||||||
size: number;
|
size?: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** https://docs.discord.com/developers/components/reference#separator */
|
/** https://docs.discord.com/developers/components/reference#separator */
|
||||||
|
|||||||
Reference in New Issue
Block a user