feat: APIWebhookSourceGuild (#1236)

This commit is contained in:
Jiralite
2025-05-11 10:50:11 +01:00
committed by GitHub
parent ca206593ef
commit 21420c3028
8 changed files with 28 additions and 8 deletions

View File

@@ -73,6 +73,11 @@ export interface APIPartialGuild extends Omit<APIUnavailableGuild, 'unavailable'
vanity_url_code?: string | null;
}
/**
* Source guild of channel follower webhooks.
*/
export type APIWebhookSourceGuild = Pick<APIPartialGuild, 'icon' | 'id' | 'name'>;
/**
* @see {@link https://discord.com/developers/docs/resources/guild#guild-object-guild-structure}
*/

View File

@@ -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)
*/

View File

@@ -73,6 +73,11 @@ export interface APIPartialGuild extends Omit<APIUnavailableGuild, 'unavailable'
vanity_url_code?: string | null;
}
/**
* Source guild of channel follower webhooks.
*/
export type APIWebhookSourceGuild = Pick<APIPartialGuild, 'icon' | 'id' | 'name'>;
/**
* @see {@link https://discord.com/developers/docs/resources/guild#guild-object-guild-structure}
*/

View File

@@ -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)
*/

View File

@@ -73,6 +73,11 @@ export interface APIPartialGuild extends Omit<APIUnavailableGuild, 'unavailable'
vanity_url_code?: string | null;
}
/**
* Source guild of channel follower webhooks.
*/
export type APIWebhookSourceGuild = Pick<APIPartialGuild, 'icon' | 'id' | 'name'>;
/**
* @see {@link https://discord.com/developers/docs/resources/guild#guild-object-guild-structure}
*/

View File

@@ -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)
*/

View File

@@ -73,6 +73,11 @@ export interface APIPartialGuild extends Omit<APIUnavailableGuild, 'unavailable'
vanity_url_code?: string | null;
}
/**
* Source guild of channel follower webhooks.
*/
export type APIWebhookSourceGuild = Pick<APIPartialGuild, 'icon' | 'id' | 'name'>;
/**
* @see {@link https://discord.com/developers/docs/resources/guild#guild-object-guild-structure}
*/

View File

@@ -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)
*/