Skip to content

Commit 7f79b89

Browse files
committed
chore: missing changes
1 parent cfba4b2 commit 7f79b89

File tree

4 files changed

+78
-14
lines changed

4 files changed

+78
-14
lines changed

deno/payloads/v10/message.ts

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,6 @@ export interface APIMessage {
187187
referenced_message?: APIMessage | null;
188188
/**
189189
* Sent if the message is sent as a result of an interaction
190-
*
191-
* @unstable
192190
*/
193191
interaction_metadata?: APIMessageInteractionMetadata;
194192
/**
@@ -308,6 +306,10 @@ export enum MessageType {
308306
GuildIncidentAlertModeDisabled,
309307
GuildIncidentReportRaid,
310308
GuildIncidentReportFalseAlarm,
309+
310+
PurchaseNotification = 44,
311+
312+
PollResult = 46,
311313
}
312314

313315
/**
@@ -367,7 +369,7 @@ export enum MessageReferenceType {
367369
/**
368370
* A standard reference used by replies
369371
*/
370-
Default = 0,
372+
Default,
371373
/**
372374
* Reference used to point to a message at a point in time
373375
*/
@@ -474,6 +476,13 @@ export interface APIMessageSnapshot {
474476
message: APIMessageSnapshotFields;
475477
/**
476478
* Id of the origin message's guild
479+
*
480+
* @deprecated This field doesn't accurately reflect the Discord API as it doesn't exist nor is documented and will
481+
* be removed in the next major version.
482+
*
483+
* It was added in {@link https://github.com/discord/discord-api-docs/pull/6833/commits/d18f72d06d62e6b1d51ca2c1ef308ddc29ff3348 | d18f72d}
484+
* but was later removed before the PR ({@link https://github.com/discord/discord-api-docs/pull/6833 | discord-api-docs#6833}) was merged.
485+
* See {@link https://github.com/discordjs/discord-api-types/pull/1084 | discord-api-types#1084} for more information.
477486
*/
478487
guild_id?: Snowflake;
479488
}
@@ -644,6 +653,10 @@ export enum EmbedType {
644653
* @unstable This embed type is currently not documented by Discord, but it is returned in the auto moderation system messages.
645654
*/
646655
AutoModerationMessage = 'auto_moderation_message',
656+
/**
657+
* Poll result embed
658+
*/
659+
PollResult = 'poll_result',
647660
}
648661

649662
/**
@@ -1303,12 +1316,15 @@ export type APIModalActionRowComponent = APITextInputComponent;
13031316
export type APIMessageSnapshotFields = Pick<
13041317
APIMessage,
13051318
| 'attachments'
1319+
| 'components'
13061320
| 'content'
13071321
| 'edited_timestamp'
13081322
| 'embeds'
13091323
| 'flags'
13101324
| 'mention_roles'
13111325
| 'mentions'
1326+
| 'sticker_items'
1327+
| 'stickers'
13121328
| 'timestamp'
13131329
| 'type'
13141330
>;

deno/payloads/v9/message.ts

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,6 @@ export interface APIMessage {
184184
referenced_message?: APIMessage | null;
185185
/**
186186
* Sent if the message is sent as a result of an interaction
187-
*
188-
* @unstable
189187
*/
190188
interaction_metadata?: APIMessageInteractionMetadata;
191189
/**
@@ -298,6 +296,10 @@ export enum MessageType {
298296
GuildIncidentAlertModeDisabled,
299297
GuildIncidentReportRaid,
300298
GuildIncidentReportFalseAlarm,
299+
300+
PurchaseNotification = 44,
301+
302+
PollResult = 46,
301303
}
302304

303305
/**
@@ -357,11 +359,11 @@ export enum MessageReferenceType {
357359
/**
358360
* A standard reference used by replies
359361
*/
360-
Default = 0,
362+
Default,
361363
/**
362364
* Reference used to point to a message at a point in time
363365
*/
364-
Forward = 1,
366+
Forward,
365367
}
366368

367369
/**
@@ -442,6 +444,13 @@ export interface APIMessageSnapshot {
442444
message: APIMessageSnapshotFields;
443445
/**
444446
* Id of the origin message's guild
447+
*
448+
* @deprecated This field doesn't accurately reflect the Discord API as it doesn't exist nor is documented and will
449+
* be removed in the next major version.
450+
*
451+
* It was added in {@link https://github.com/discord/discord-api-docs/pull/6833/commits/d18f72d06d62e6b1d51ca2c1ef308ddc29ff3348 | d18f72d}
452+
* but was later removed before the PR ({@link https://github.com/discord/discord-api-docs/pull/6833 | discord-api-docs#6833}) was merged.
453+
* See {@link https://github.com/discordjs/discord-api-types/pull/1084 | discord-api-types#1084} for more information.
445454
*/
446455
guild_id?: Snowflake;
447456
}
@@ -612,6 +621,10 @@ export enum EmbedType {
612621
* @unstable This embed type is currently not documented by Discord, but it is returned in the auto moderation system messages.
613622
*/
614623
AutoModerationMessage = 'auto_moderation_message',
624+
/**
625+
* Poll result embed
626+
*/
627+
PollResult = 'poll_result',
615628
}
616629

617630
/**
@@ -1271,12 +1284,15 @@ export type APIModalActionRowComponent = APITextInputComponent;
12711284
export type APIMessageSnapshotFields = Pick<
12721285
APIMessage,
12731286
| 'attachments'
1287+
| 'components'
12741288
| 'content'
12751289
| 'edited_timestamp'
12761290
| 'embeds'
12771291
| 'flags'
12781292
| 'mention_roles'
12791293
| 'mentions'
1294+
| 'sticker_items'
1295+
| 'stickers'
12801296
| 'timestamp'
12811297
| 'type'
12821298
>;

payloads/v10/message.ts

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,6 @@ export interface APIMessage {
187187
referenced_message?: APIMessage | null;
188188
/**
189189
* Sent if the message is sent as a result of an interaction
190-
*
191-
* @unstable
192190
*/
193191
interaction_metadata?: APIMessageInteractionMetadata;
194192
/**
@@ -308,6 +306,10 @@ export enum MessageType {
308306
GuildIncidentAlertModeDisabled,
309307
GuildIncidentReportRaid,
310308
GuildIncidentReportFalseAlarm,
309+
310+
PurchaseNotification = 44,
311+
312+
PollResult = 46,
311313
}
312314

313315
/**
@@ -367,7 +369,7 @@ export enum MessageReferenceType {
367369
/**
368370
* A standard reference used by replies
369371
*/
370-
Default = 0,
372+
Default,
371373
/**
372374
* Reference used to point to a message at a point in time
373375
*/
@@ -474,6 +476,13 @@ export interface APIMessageSnapshot {
474476
message: APIMessageSnapshotFields;
475477
/**
476478
* Id of the origin message's guild
479+
*
480+
* @deprecated This field doesn't accurately reflect the Discord API as it doesn't exist nor is documented and will
481+
* be removed in the next major version.
482+
*
483+
* It was added in {@link https://github.com/discord/discord-api-docs/pull/6833/commits/d18f72d06d62e6b1d51ca2c1ef308ddc29ff3348 | d18f72d}
484+
* but was later removed before the PR ({@link https://github.com/discord/discord-api-docs/pull/6833 | discord-api-docs#6833}) was merged.
485+
* See {@link https://github.com/discordjs/discord-api-types/pull/1084 | discord-api-types#1084} for more information.
477486
*/
478487
guild_id?: Snowflake;
479488
}
@@ -644,6 +653,10 @@ export enum EmbedType {
644653
* @unstable This embed type is currently not documented by Discord, but it is returned in the auto moderation system messages.
645654
*/
646655
AutoModerationMessage = 'auto_moderation_message',
656+
/**
657+
* Poll result embed
658+
*/
659+
PollResult = 'poll_result',
647660
}
648661

649662
/**
@@ -1303,12 +1316,15 @@ export type APIModalActionRowComponent = APITextInputComponent;
13031316
export type APIMessageSnapshotFields = Pick<
13041317
APIMessage,
13051318
| 'attachments'
1319+
| 'components'
13061320
| 'content'
13071321
| 'edited_timestamp'
13081322
| 'embeds'
13091323
| 'flags'
13101324
| 'mention_roles'
13111325
| 'mentions'
1326+
| 'sticker_items'
1327+
| 'stickers'
13121328
| 'timestamp'
13131329
| 'type'
13141330
>;

payloads/v9/message.ts

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,6 @@ export interface APIMessage {
184184
referenced_message?: APIMessage | null;
185185
/**
186186
* Sent if the message is sent as a result of an interaction
187-
*
188-
* @unstable
189187
*/
190188
interaction_metadata?: APIMessageInteractionMetadata;
191189
/**
@@ -298,6 +296,10 @@ export enum MessageType {
298296
GuildIncidentAlertModeDisabled,
299297
GuildIncidentReportRaid,
300298
GuildIncidentReportFalseAlarm,
299+
300+
PurchaseNotification = 44,
301+
302+
PollResult = 46,
301303
}
302304

303305
/**
@@ -357,11 +359,11 @@ export enum MessageReferenceType {
357359
/**
358360
* A standard reference used by replies
359361
*/
360-
Default = 0,
362+
Default,
361363
/**
362364
* Reference used to point to a message at a point in time
363365
*/
364-
Forward = 1,
366+
Forward,
365367
}
366368

367369
/**
@@ -442,6 +444,13 @@ export interface APIMessageSnapshot {
442444
message: APIMessageSnapshotFields;
443445
/**
444446
* Id of the origin message's guild
447+
*
448+
* @deprecated This field doesn't accurately reflect the Discord API as it doesn't exist nor is documented and will
449+
* be removed in the next major version.
450+
*
451+
* It was added in {@link https://github.com/discord/discord-api-docs/pull/6833/commits/d18f72d06d62e6b1d51ca2c1ef308ddc29ff3348 | d18f72d}
452+
* but was later removed before the PR ({@link https://github.com/discord/discord-api-docs/pull/6833 | discord-api-docs#6833}) was merged.
453+
* See {@link https://github.com/discordjs/discord-api-types/pull/1084 | discord-api-types#1084} for more information.
445454
*/
446455
guild_id?: Snowflake;
447456
}
@@ -612,6 +621,10 @@ export enum EmbedType {
612621
* @unstable This embed type is currently not documented by Discord, but it is returned in the auto moderation system messages.
613622
*/
614623
AutoModerationMessage = 'auto_moderation_message',
624+
/**
625+
* Poll result embed
626+
*/
627+
PollResult = 'poll_result',
615628
}
616629

617630
/**
@@ -1271,12 +1284,15 @@ export type APIModalActionRowComponent = APITextInputComponent;
12711284
export type APIMessageSnapshotFields = Pick<
12721285
APIMessage,
12731286
| 'attachments'
1287+
| 'components'
12741288
| 'content'
12751289
| 'edited_timestamp'
12761290
| 'embeds'
12771291
| 'flags'
12781292
| 'mention_roles'
12791293
| 'mentions'
1294+
| 'sticker_items'
1295+
| 'stickers'
12801296
| 'timestamp'
12811297
| 'type'
12821298
>;

0 commit comments

Comments
 (0)