11/** @module Types/Channels */
22import type { NullablePartialEmoji , PartialEmoji , RawInviteGuild , RawMember } from "./guilds" ;
3- import type { RawApplication , RawPartialApplication } from "./applications" ;
3+ import type { RESTApplication , RawApplication , RawPartialApplication } from "./applications" ;
44import type { RawUser , RawUserWithMember } from "./users" ;
55import type { File } from "./request-handler" ;
66import type { RawScheduledEvent } from "./scheduled-events" ;
@@ -307,7 +307,7 @@ export interface CreateMessageOptions {
307307 enforceNonce ?: boolean ;
308308 /** The files to send. */
309309 files ?: Array < File > ;
310- /** The [flags](https://discord.com/developers/docs/resources/channel#message-object-message-flags) to send with the message. */
310+ /** The { @link Constants.MessageFlags | Message Flags} to send with the message. */
311311 flags ?: number ;
312312 /** Reply to a message. */
313313 messageReference ?: MessageReference ;
@@ -355,6 +355,8 @@ export interface EmbedBase extends EmbedOptionsBase {
355355export interface RawEmbed extends EmbedBase {
356356 author ?: RawEmbedAuthor ;
357357 fields ?: Array < EmbedField > ;
358+ /** The {@link Constants.EmbedFlags | Embed Flags} for the embed. */
359+ flags ?: number ;
358360 footer ?: RawEmbedFooter ;
359361 image ?: RawEmbedImage ;
360362 provider ?: EmbedProvider ;
@@ -365,6 +367,8 @@ export interface RawEmbed extends EmbedBase {
365367export interface Embed extends EmbedBase {
366368 author ?: EmbedAuthor ;
367369 fields ?: Array < EmbedField > ;
370+ /** The {@link Constants.EmbedFlags | Embed Flags} for the embed. */
371+ flags ?: number ;
368372 footer ?: EmbedFooter ;
369373 image ?: EmbedImage ;
370374 provider ?: EmbedProvider ;
@@ -384,36 +388,41 @@ export interface RawEmbedAuthor extends EmbedAuthorBase {
384388 proxy_icon_url ?: string ;
385389}
386390
387- export interface EmbedAuthorOptions extends EmbedAuthorBase {
391+ export interface EmbedAuthor extends EmbedAuthorOptions {
388392 iconURL ?: string ;
393+ proxyIconURL ?: string ;
389394}
390395
391396export interface RawEmbedAuthorOptions extends EmbedAuthorBase {
392397 icon_url ?: string ;
393398}
394399
395- export interface EmbedAuthor extends EmbedAuthorOptions {
400+ export interface EmbedAuthorOptions extends EmbedAuthorBase {
396401 iconURL ?: string ;
397- proxyIconURL ?: string ;
398402}
403+
399404export interface EmbedFooterBase {
400405 text : string ;
401406}
402407
403- export interface EmbedFooterOptions extends EmbedFooterBase {
404- iconURL ?: string ;
405- }
406-
407408export interface RawEmbedFooterOptions extends EmbedFooterBase {
408409 icon_url ?: string ;
409410}
410411
412+ export interface EmbedFooterOptions extends EmbedFooterBase {
413+ iconURL ?: string ;
414+ }
415+
411416export interface RawEmbedFooter extends EmbedFooterBase {
417+ /** The {@link Constants.EmbedMediaFlags | Embed Media Flags} for the media. */
418+ flags ?: number ;
412419 icon_url ?: string ;
413420 proxy_icon_url ?: string ;
414421}
415422
416423export interface EmbedFooter extends EmbedFooterOptions {
424+ /** The {@link Constants.EmbedMediaFlags | Embed Media Flags} for the media. */
425+ flags ?: number ;
417426 iconURL ?: string ;
418427 proxyIconURL ?: string ;
419428}
@@ -424,17 +433,21 @@ export interface EmbedImageBase {
424433}
425434
426435export interface RawEmbedImage extends EmbedImageBase , EmbedImageOptions {
436+ /** The {@link Constants.EmbedMediaFlags | Embed Media Flags} for the media. */
437+ flags ?: number ;
427438 proxy_url ?: string ;
428439}
429440
430- export interface EmbedImageOptions {
431- url : string ;
432- }
433-
434441export interface EmbedImage extends EmbedImageBase , EmbedImageOptions {
442+ /** The {@link Constants.EmbedMediaFlags | Embed Media Flags} for the media. */
443+ flags ?: number ;
435444 proxyURL ?: string ;
436445}
437446
447+ export interface EmbedImageOptions {
448+ url : string ;
449+ }
450+
438451export interface EmbedField {
439452 inline ?: boolean ;
440453 name : string ;
@@ -653,6 +666,9 @@ export interface TextInput {
653666}
654667
655668export interface RawAttachment {
669+ application ?: RESTApplication ;
670+ clip_created_at ?: string ;
671+ clip_participants ?: Array < RawUser > ;
656672 content_type ?: string ;
657673 description ?: string ;
658674 duration_secs ?: number ;
0 commit comments