1
1
/** @module Types/Channels */
2
2
import type { NullablePartialEmoji , PartialEmoji , RawInviteGuild , RawMember } from "./guilds" ;
3
- import type { RawApplication , RawPartialApplication } from "./applications" ;
3
+ import type { RESTApplication , RawApplication , RawPartialApplication } from "./applications" ;
4
4
import type { RawUser , RawUserWithMember } from "./users" ;
5
5
import type { File } from "./request-handler" ;
6
6
import type { RawScheduledEvent } from "./scheduled-events" ;
@@ -307,7 +307,7 @@ export interface CreateMessageOptions {
307
307
enforceNonce ?: boolean ;
308
308
/** The files to send. */
309
309
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. */
311
311
flags ?: number ;
312
312
/** Reply to a message. */
313
313
messageReference ?: MessageReference ;
@@ -355,6 +355,8 @@ export interface EmbedBase extends EmbedOptionsBase {
355
355
export interface RawEmbed extends EmbedBase {
356
356
author ?: RawEmbedAuthor ;
357
357
fields ?: Array < EmbedField > ;
358
+ /** The {@link Constants.EmbedFlags | Embed Flags} for the embed. */
359
+ flags ?: number ;
358
360
footer ?: RawEmbedFooter ;
359
361
image ?: RawEmbedImage ;
360
362
provider ?: EmbedProvider ;
@@ -365,6 +367,8 @@ export interface RawEmbed extends EmbedBase {
365
367
export interface Embed extends EmbedBase {
366
368
author ?: EmbedAuthor ;
367
369
fields ?: Array < EmbedField > ;
370
+ /** The {@link Constants.EmbedFlags | Embed Flags} for the embed. */
371
+ flags ?: number ;
368
372
footer ?: EmbedFooter ;
369
373
image ?: EmbedImage ;
370
374
provider ?: EmbedProvider ;
@@ -384,36 +388,41 @@ export interface RawEmbedAuthor extends EmbedAuthorBase {
384
388
proxy_icon_url ?: string ;
385
389
}
386
390
387
- export interface EmbedAuthorOptions extends EmbedAuthorBase {
391
+ export interface EmbedAuthor extends EmbedAuthorOptions {
388
392
iconURL ?: string ;
393
+ proxyIconURL ?: string ;
389
394
}
390
395
391
396
export interface RawEmbedAuthorOptions extends EmbedAuthorBase {
392
397
icon_url ?: string ;
393
398
}
394
399
395
- export interface EmbedAuthor extends EmbedAuthorOptions {
400
+ export interface EmbedAuthorOptions extends EmbedAuthorBase {
396
401
iconURL ?: string ;
397
- proxyIconURL ?: string ;
398
402
}
403
+
399
404
export interface EmbedFooterBase {
400
405
text : string ;
401
406
}
402
407
403
- export interface EmbedFooterOptions extends EmbedFooterBase {
404
- iconURL ?: string ;
405
- }
406
-
407
408
export interface RawEmbedFooterOptions extends EmbedFooterBase {
408
409
icon_url ?: string ;
409
410
}
410
411
412
+ export interface EmbedFooterOptions extends EmbedFooterBase {
413
+ iconURL ?: string ;
414
+ }
415
+
411
416
export interface RawEmbedFooter extends EmbedFooterBase {
417
+ /** The {@link Constants.EmbedMediaFlags | Embed Media Flags} for the media. */
418
+ flags ?: number ;
412
419
icon_url ?: string ;
413
420
proxy_icon_url ?: string ;
414
421
}
415
422
416
423
export interface EmbedFooter extends EmbedFooterOptions {
424
+ /** The {@link Constants.EmbedMediaFlags | Embed Media Flags} for the media. */
425
+ flags ?: number ;
417
426
iconURL ?: string ;
418
427
proxyIconURL ?: string ;
419
428
}
@@ -424,17 +433,21 @@ export interface EmbedImageBase {
424
433
}
425
434
426
435
export interface RawEmbedImage extends EmbedImageBase , EmbedImageOptions {
436
+ /** The {@link Constants.EmbedMediaFlags | Embed Media Flags} for the media. */
437
+ flags ?: number ;
427
438
proxy_url ?: string ;
428
439
}
429
440
430
- export interface EmbedImageOptions {
431
- url : string ;
432
- }
433
-
434
441
export interface EmbedImage extends EmbedImageBase , EmbedImageOptions {
442
+ /** The {@link Constants.EmbedMediaFlags | Embed Media Flags} for the media. */
443
+ flags ?: number ;
435
444
proxyURL ?: string ;
436
445
}
437
446
447
+ export interface EmbedImageOptions {
448
+ url : string ;
449
+ }
450
+
438
451
export interface EmbedField {
439
452
inline ?: boolean ;
440
453
name : string ;
@@ -653,6 +666,9 @@ export interface TextInput {
653
666
}
654
667
655
668
export interface RawAttachment {
669
+ application ?: RESTApplication ;
670
+ clip_created_at ?: string ;
671
+ clip_participants ?: Array < RawUser > ;
656
672
content_type ?: string ;
657
673
description ?: string ;
658
674
duration_secs ?: number ;
0 commit comments