From 21420c3028afd8cc0e73cd1081c6ecdd02c81571 Mon Sep 17 00:00:00 2001 From: Jiralite <33201955+Jiralite@users.noreply.github.com> Date: Sun, 11 May 2025 10:50:11 +0100 Subject: [PATCH] feat: `APIWebhookSourceGuild` (#1236) --- deno/payloads/v10/guild.ts | 5 +++++ deno/payloads/v10/webhook.ts | 4 ++-- deno/payloads/v9/guild.ts | 5 +++++ deno/payloads/v9/webhook.ts | 4 ++-- payloads/v10/guild.ts | 5 +++++ payloads/v10/webhook.ts | 4 ++-- payloads/v9/guild.ts | 5 +++++ payloads/v9/webhook.ts | 4 ++-- 8 files changed, 28 insertions(+), 8 deletions(-) diff --git a/deno/payloads/v10/guild.ts b/deno/payloads/v10/guild.ts index d5d1820e..7616c92a 100644 --- a/deno/payloads/v10/guild.ts +++ b/deno/payloads/v10/guild.ts @@ -73,6 +73,11 @@ export interface APIPartialGuild extends Omit; + /** * @see {@link https://discord.com/developers/docs/resources/guild#guild-object-guild-structure} */ diff --git a/deno/payloads/v10/webhook.ts b/deno/payloads/v10/webhook.ts index 13d122c5..f53bccd6 100644 --- a/deno/payloads/v10/webhook.ts +++ b/deno/payloads/v10/webhook.ts @@ -6,8 +6,8 @@ import type { Snowflake } from '../../globals.ts'; import type { APIEntitlement, APIGuild, - APIPartialGuild, APIUser, + APIWebhookSourceGuild, ApplicationIntegrationType, OAuth2Scopes, APIWebhookSourceChannel, @@ -60,7 +60,7 @@ export interface APIWebhook { /** * The guild of the channel that this webhook is following (returned for Channel Follower Webhooks) */ - source_guild?: APIPartialGuild; + source_guild?: APIWebhookSourceGuild; /** * The channel that this webhook is following (returned for Channel Follower Webhooks) */ diff --git a/deno/payloads/v9/guild.ts b/deno/payloads/v9/guild.ts index 753b5536..86134432 100644 --- a/deno/payloads/v9/guild.ts +++ b/deno/payloads/v9/guild.ts @@ -73,6 +73,11 @@ export interface APIPartialGuild extends Omit; + /** * @see {@link https://discord.com/developers/docs/resources/guild#guild-object-guild-structure} */ diff --git a/deno/payloads/v9/webhook.ts b/deno/payloads/v9/webhook.ts index 13d122c5..f53bccd6 100644 --- a/deno/payloads/v9/webhook.ts +++ b/deno/payloads/v9/webhook.ts @@ -6,8 +6,8 @@ import type { Snowflake } from '../../globals.ts'; import type { APIEntitlement, APIGuild, - APIPartialGuild, APIUser, + APIWebhookSourceGuild, ApplicationIntegrationType, OAuth2Scopes, APIWebhookSourceChannel, @@ -60,7 +60,7 @@ export interface APIWebhook { /** * The guild of the channel that this webhook is following (returned for Channel Follower Webhooks) */ - source_guild?: APIPartialGuild; + source_guild?: APIWebhookSourceGuild; /** * The channel that this webhook is following (returned for Channel Follower Webhooks) */ diff --git a/payloads/v10/guild.ts b/payloads/v10/guild.ts index 3433e898..10c2db2f 100644 --- a/payloads/v10/guild.ts +++ b/payloads/v10/guild.ts @@ -73,6 +73,11 @@ export interface APIPartialGuild extends Omit; + /** * @see {@link https://discord.com/developers/docs/resources/guild#guild-object-guild-structure} */ diff --git a/payloads/v10/webhook.ts b/payloads/v10/webhook.ts index 1de09cbb..3b83f608 100644 --- a/payloads/v10/webhook.ts +++ b/payloads/v10/webhook.ts @@ -6,8 +6,8 @@ import type { Snowflake } from '../../globals'; import type { APIEntitlement, APIGuild, - APIPartialGuild, APIUser, + APIWebhookSourceGuild, ApplicationIntegrationType, OAuth2Scopes, APIWebhookSourceChannel, @@ -60,7 +60,7 @@ export interface APIWebhook { /** * The guild of the channel that this webhook is following (returned for Channel Follower Webhooks) */ - source_guild?: APIPartialGuild; + source_guild?: APIWebhookSourceGuild; /** * The channel that this webhook is following (returned for Channel Follower Webhooks) */ diff --git a/payloads/v9/guild.ts b/payloads/v9/guild.ts index 1b8910af..2c1f7fe2 100644 --- a/payloads/v9/guild.ts +++ b/payloads/v9/guild.ts @@ -73,6 +73,11 @@ export interface APIPartialGuild extends Omit; + /** * @see {@link https://discord.com/developers/docs/resources/guild#guild-object-guild-structure} */ diff --git a/payloads/v9/webhook.ts b/payloads/v9/webhook.ts index 1de09cbb..3b83f608 100644 --- a/payloads/v9/webhook.ts +++ b/payloads/v9/webhook.ts @@ -6,8 +6,8 @@ import type { Snowflake } from '../../globals'; import type { APIEntitlement, APIGuild, - APIPartialGuild, APIUser, + APIWebhookSourceGuild, ApplicationIntegrationType, OAuth2Scopes, APIWebhookSourceChannel, @@ -60,7 +60,7 @@ export interface APIWebhook { /** * The guild of the channel that this webhook is following (returned for Channel Follower Webhooks) */ - source_guild?: APIPartialGuild; + source_guild?: APIWebhookSourceGuild; /** * The channel that this webhook is following (returned for Channel Follower Webhooks) */