Skip to content

Commit

Permalink
feat: full message object on message update (#1140)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiralite authored Nov 12, 2024
1 parent 8ada51a commit 3512262
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 44 deletions.
12 changes: 1 addition & 11 deletions deno/gateway/v10.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1597,17 +1597,7 @@ export type GatewayMessageUpdateDispatch = DataPayload<
/**
* https://discord.com/developers/docs/topics/gateway-events#message-update
*/
export type GatewayMessageUpdateDispatchData = GatewayMessageEventExtraFields &
Omit<Partial<APIMessage>, 'mentions'> & {
/**
* ID of the message
*/
id: Snowflake;
/**
* ID of the channel the message was sent in
*/
channel_id: Snowflake;
};
export type GatewayMessageUpdateDispatchData = GatewayMessageEventExtraFields & Omit<APIMessage, 'mentions'>;

/**
* https://discord.com/developers/docs/topics/gateway-events#message-create-message-create-extra-fields
Expand Down
12 changes: 1 addition & 11 deletions deno/gateway/v9.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1596,17 +1596,7 @@ export type GatewayMessageUpdateDispatch = DataPayload<
/**
* https://discord.com/developers/docs/topics/gateway-events#message-update
*/
export type GatewayMessageUpdateDispatchData = GatewayMessageEventExtraFields &
Omit<Partial<APIMessage>, 'mentions'> & {
/**
* ID of the message
*/
id: Snowflake;
/**
* ID of the channel the message was sent in
*/
channel_id: Snowflake;
};
export type GatewayMessageUpdateDispatchData = GatewayMessageEventExtraFields & Omit<APIMessage, 'mentions'>;

/**
* https://discord.com/developers/docs/topics/gateway-events#message-create-message-create-extra-fields
Expand Down
12 changes: 1 addition & 11 deletions gateway/v10.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1597,17 +1597,7 @@ export type GatewayMessageUpdateDispatch = DataPayload<
/**
* https://discord.com/developers/docs/topics/gateway-events#message-update
*/
export type GatewayMessageUpdateDispatchData = GatewayMessageEventExtraFields &
Omit<Partial<APIMessage>, 'mentions'> & {
/**
* ID of the message
*/
id: Snowflake;
/**
* ID of the channel the message was sent in
*/
channel_id: Snowflake;
};
export type GatewayMessageUpdateDispatchData = GatewayMessageEventExtraFields & Omit<APIMessage, 'mentions'>;

/**
* https://discord.com/developers/docs/topics/gateway-events#message-create-message-create-extra-fields
Expand Down
12 changes: 1 addition & 11 deletions gateway/v9.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1596,17 +1596,7 @@ export type GatewayMessageUpdateDispatch = DataPayload<
/**
* https://discord.com/developers/docs/topics/gateway-events#message-update
*/
export type GatewayMessageUpdateDispatchData = GatewayMessageEventExtraFields &
Omit<Partial<APIMessage>, 'mentions'> & {
/**
* ID of the message
*/
id: Snowflake;
/**
* ID of the channel the message was sent in
*/
channel_id: Snowflake;
};
export type GatewayMessageUpdateDispatchData = GatewayMessageEventExtraFields & Omit<APIMessage, 'mentions'>;

/**
* https://discord.com/developers/docs/topics/gateway-events#message-create-message-create-extra-fields
Expand Down

0 comments on commit 3512262

Please sign in to comment.