Skip to content

Commit 3f3fe21

Browse files
authored
fix(APIMessageSnapshot): mark guild_id as deprecated (#1084)
1 parent 011d439 commit 3f3fe21

File tree

4 files changed

+28
-0
lines changed

4 files changed

+28
-0
lines changed

deno/payloads/v10/channel.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1914,6 +1914,13 @@ export interface APIMessageSnapshot {
19141914
message: APIMessageSnapshotFields;
19151915
/**
19161916
* Id of the origin message's guild
1917+
*
1918+
* @deprecated This field doesn't accurately reflect the Discord API as it doesn't exist nor is documented and will
1919+
* be removed in the next major version.
1920+
*
1921+
* It was added in {@link https://github.com/discord/discord-api-docs/pull/6833/commits/d18f72d06d62e6b1d51ca2c1ef308ddc29ff3348 | d18f72d}
1922+
* but was later removed before the PR ({@link https://github.com/discord/discord-api-docs/pull/6833 | discord-api-docs#6833}) was merged.
1923+
* See {@link https://github.com/discordjs/discord-api-types/pull/1084 | discord-api-types#1084} for more information.
19171924
*/
19181925
guild_id?: Snowflake;
19191926
}

deno/payloads/v9/channel.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1881,6 +1881,13 @@ export interface APIMessageSnapshot {
18811881
message: APIMessageSnapshotFields;
18821882
/**
18831883
* Id of the origin message's guild
1884+
*
1885+
* @deprecated This field doesn't accurately reflect the Discord API as it doesn't exist nor is documented and will
1886+
* be removed in the next major version.
1887+
*
1888+
* It was added in {@link https://github.com/discord/discord-api-docs/pull/6833/commits/d18f72d06d62e6b1d51ca2c1ef308ddc29ff3348 | d18f72d}
1889+
* but was later removed before the PR ({@link https://github.com/discord/discord-api-docs/pull/6833 | discord-api-docs#6833}) was merged.
1890+
* See {@link https://github.com/discordjs/discord-api-types/pull/1084 | discord-api-types#1084} for more information.
18841891
*/
18851892
guild_id?: Snowflake;
18861893
}

payloads/v10/channel.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1914,6 +1914,13 @@ export interface APIMessageSnapshot {
19141914
message: APIMessageSnapshotFields;
19151915
/**
19161916
* Id of the origin message's guild
1917+
*
1918+
* @deprecated This field doesn't accurately reflect the Discord API as it doesn't exist nor is documented and will
1919+
* be removed in the next major version.
1920+
*
1921+
* It was added in {@link https://github.com/discord/discord-api-docs/pull/6833/commits/d18f72d06d62e6b1d51ca2c1ef308ddc29ff3348 | d18f72d}
1922+
* but was later removed before the PR ({@link https://github.com/discord/discord-api-docs/pull/6833 | discord-api-docs#6833}) was merged.
1923+
* See {@link https://github.com/discordjs/discord-api-types/pull/1084 | discord-api-types#1084} for more information.
19171924
*/
19181925
guild_id?: Snowflake;
19191926
}

payloads/v9/channel.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1881,6 +1881,13 @@ export interface APIMessageSnapshot {
18811881
message: APIMessageSnapshotFields;
18821882
/**
18831883
* Id of the origin message's guild
1884+
*
1885+
* @deprecated This field doesn't accurately reflect the Discord API as it doesn't exist nor is documented and will
1886+
* be removed in the next major version.
1887+
*
1888+
* It was added in {@link https://github.com/discord/discord-api-docs/pull/6833/commits/d18f72d06d62e6b1d51ca2c1ef308ddc29ff3348 | d18f72d}
1889+
* but was later removed before the PR ({@link https://github.com/discord/discord-api-docs/pull/6833 | discord-api-docs#6833}) was merged.
1890+
* See {@link https://github.com/discordjs/discord-api-types/pull/1084 | discord-api-types#1084} for more information.
18841891
*/
18851892
guild_id?: Snowflake;
18861893
}

0 commit comments

Comments
 (0)