Add new fields to message snapshots (#3897)

This commit is contained in:
Fleny
2024-09-07 08:40:42 +02:00
committed by GitHub
parent 48902bcb8e
commit 57fa3d4d22
2 changed files with 26 additions and 2 deletions
+14 -1
View File
@@ -1193,7 +1193,20 @@ export interface MessageReference {
export interface MessageSnapshot {
/** Minimal subset of fields in the forwarded message */
message: Pick<Message, 'type' | 'content' | 'embeds' | 'attachments' | 'timestamp' | 'editedTimestamp' | 'flags' | 'mentions' | 'mentionedRoleIds'>
message: Pick<
Message,
| 'type'
| 'content'
| 'embeds'
| 'attachments'
| 'timestamp'
| 'editedTimestamp'
| 'flags'
| 'mentions'
| 'mentionedRoleIds'
| 'stickerItems'
| 'components'
>
}
export interface MessageInteractionMetadata {
+12 -1
View File
@@ -1501,7 +1501,18 @@ export interface DiscordMessageSnapshot {
/** Minimal subset of fields in the forwarded message */
message: Pick<
DiscordMessage,
'type' | 'content' | 'embeds' | 'attachments' | 'timestamp' | 'edited_timestamp' | 'flags' | 'mentions' | 'mention_roles'
| 'type'
| 'content'
| 'embeds'
| 'attachments'
| 'timestamp'
| 'edited_timestamp'
| 'flags'
| 'mentions'
| 'mention_roles'
| 'stickers'
| 'sticker_items'
| 'components'
>
}