diff --git a/deno/payloads/v10/channel.ts b/deno/payloads/v10/channel.ts index 33957e48..2452ebbe 100644 --- a/deno/payloads/v10/channel.ts +++ b/deno/payloads/v10/channel.ts @@ -3,6 +3,7 @@ */ import type { Permissions, Snowflake } from '../../globals.ts'; +import type { _NonNullableFields } from '../../utils/internals.ts'; import type { APIApplication } from './application.ts'; import type { APIPartialEmoji } from './emoji.ts'; import type { APIGuildMember } from './guild.ts'; @@ -48,6 +49,11 @@ export interface APIInviteChannel extends Required { recipients?: Pick[] | undefined; } +/** + * Source channel of channel follower webhooks. + */ +export type APIWebhookSourceChannel = Required<_NonNullableFields>>; + /** * This interface is used to allow easy extension for other channel types. While * also allowing `APIPartialChannel` to be used without breaking. diff --git a/deno/payloads/v10/webhook.ts b/deno/payloads/v10/webhook.ts index 39ad39c2..13d122c5 100644 --- a/deno/payloads/v10/webhook.ts +++ b/deno/payloads/v10/webhook.ts @@ -6,11 +6,11 @@ import type { Snowflake } from '../../globals.ts'; import type { APIEntitlement, APIGuild, - APIPartialChannel, APIPartialGuild, APIUser, ApplicationIntegrationType, OAuth2Scopes, + APIWebhookSourceChannel, } from './mod.ts'; /** @@ -64,7 +64,7 @@ export interface APIWebhook { /** * The channel that this webhook is following (returned for Channel Follower Webhooks) */ - source_channel?: APIPartialChannel; + source_channel?: APIWebhookSourceChannel; /** * The url used for executing the webhook (returned by the webhooks OAuth2 flow) */ diff --git a/deno/payloads/v9/channel.ts b/deno/payloads/v9/channel.ts index d4c5bad7..46ae5e82 100644 --- a/deno/payloads/v9/channel.ts +++ b/deno/payloads/v9/channel.ts @@ -3,6 +3,7 @@ */ import type { Permissions, Snowflake } from '../../globals.ts'; +import type { _NonNullableFields } from '../../utils/internals.ts'; import type { APIApplication } from './application.ts'; import type { APIPartialEmoji } from './emoji.ts'; import type { APIGuildMember } from './guild.ts'; @@ -48,6 +49,11 @@ export interface APIInviteChannel extends Required { recipients?: Pick[] | undefined; } +/** + * Source channel of channel follower webhooks. + */ +export type APIWebhookSourceChannel = Required<_NonNullableFields>>; + /** * This interface is used to allow easy extension for other channel types. While * also allowing `APIPartialChannel` to be used without breaking. diff --git a/deno/payloads/v9/webhook.ts b/deno/payloads/v9/webhook.ts index 39ad39c2..13d122c5 100644 --- a/deno/payloads/v9/webhook.ts +++ b/deno/payloads/v9/webhook.ts @@ -6,11 +6,11 @@ import type { Snowflake } from '../../globals.ts'; import type { APIEntitlement, APIGuild, - APIPartialChannel, APIPartialGuild, APIUser, ApplicationIntegrationType, OAuth2Scopes, + APIWebhookSourceChannel, } from './mod.ts'; /** @@ -64,7 +64,7 @@ export interface APIWebhook { /** * The channel that this webhook is following (returned for Channel Follower Webhooks) */ - source_channel?: APIPartialChannel; + source_channel?: APIWebhookSourceChannel; /** * The url used for executing the webhook (returned by the webhooks OAuth2 flow) */ diff --git a/payloads/v10/channel.ts b/payloads/v10/channel.ts index 3fa265a9..5ffce249 100644 --- a/payloads/v10/channel.ts +++ b/payloads/v10/channel.ts @@ -3,6 +3,7 @@ */ import type { Permissions, Snowflake } from '../../globals'; +import type { _NonNullableFields } from '../../utils/internals'; import type { APIApplication } from './application'; import type { APIPartialEmoji } from './emoji'; import type { APIGuildMember } from './guild'; @@ -48,6 +49,11 @@ export interface APIInviteChannel extends Required { recipients?: Pick[] | undefined; } +/** + * Source channel of channel follower webhooks. + */ +export type APIWebhookSourceChannel = Required<_NonNullableFields>>; + /** * This interface is used to allow easy extension for other channel types. While * also allowing `APIPartialChannel` to be used without breaking. diff --git a/payloads/v10/webhook.ts b/payloads/v10/webhook.ts index 1a72bf51..1de09cbb 100644 --- a/payloads/v10/webhook.ts +++ b/payloads/v10/webhook.ts @@ -6,11 +6,11 @@ import type { Snowflake } from '../../globals'; import type { APIEntitlement, APIGuild, - APIPartialChannel, APIPartialGuild, APIUser, ApplicationIntegrationType, OAuth2Scopes, + APIWebhookSourceChannel, } from './index'; /** @@ -64,7 +64,7 @@ export interface APIWebhook { /** * The channel that this webhook is following (returned for Channel Follower Webhooks) */ - source_channel?: APIPartialChannel; + source_channel?: APIWebhookSourceChannel; /** * The url used for executing the webhook (returned by the webhooks OAuth2 flow) */ diff --git a/payloads/v9/channel.ts b/payloads/v9/channel.ts index 60594c4e..2e1d5a6a 100644 --- a/payloads/v9/channel.ts +++ b/payloads/v9/channel.ts @@ -3,6 +3,7 @@ */ import type { Permissions, Snowflake } from '../../globals'; +import type { _NonNullableFields } from '../../utils/internals'; import type { APIApplication } from './application'; import type { APIPartialEmoji } from './emoji'; import type { APIGuildMember } from './guild'; @@ -48,6 +49,11 @@ export interface APIInviteChannel extends Required { recipients?: Pick[] | undefined; } +/** + * Source channel of channel follower webhooks. + */ +export type APIWebhookSourceChannel = Required<_NonNullableFields>>; + /** * This interface is used to allow easy extension for other channel types. While * also allowing `APIPartialChannel` to be used without breaking. diff --git a/payloads/v9/webhook.ts b/payloads/v9/webhook.ts index 1a72bf51..1de09cbb 100644 --- a/payloads/v9/webhook.ts +++ b/payloads/v9/webhook.ts @@ -6,11 +6,11 @@ import type { Snowflake } from '../../globals'; import type { APIEntitlement, APIGuild, - APIPartialChannel, APIPartialGuild, APIUser, ApplicationIntegrationType, OAuth2Scopes, + APIWebhookSourceChannel, } from './index'; /** @@ -64,7 +64,7 @@ export interface APIWebhook { /** * The channel that this webhook is following (returned for Channel Follower Webhooks) */ - source_channel?: APIPartialChannel; + source_channel?: APIWebhookSourceChannel; /** * The url used for executing the webhook (returned by the webhooks OAuth2 flow) */