diff --git a/deno/payloads/v10/channel.ts b/deno/payloads/v10/channel.ts index 3a983e70..33957e48 100644 --- a/deno/payloads/v10/channel.ts +++ b/deno/payloads/v10/channel.ts @@ -32,6 +32,22 @@ export interface APIPartialChannel { name?: string | null; } +/** + * A channel obtained from fetching an invite. + */ +export interface APIInviteChannel extends Required { + /** + * Icon hash. + */ + icon?: string | undefined; + /** + * The invite channel's recipients. + * + * @remarks Only includes usernames of users. + */ + recipients?: Pick[] | undefined; +} + /** * 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/invite.ts b/deno/payloads/v10/invite.ts index 25b70137..3b4168cd 100644 --- a/deno/payloads/v10/invite.ts +++ b/deno/payloads/v10/invite.ts @@ -3,7 +3,7 @@ */ import type { APIApplication } from './application.ts'; -import type { APIPartialChannel } from './channel.ts'; +import type { APIInviteChannel } from './channel.ts'; import type { APIGuild } from './guild.ts'; import type { APIGuildScheduledEvent } from './guildScheduledEvent.ts'; import type { APIInviteStageInstance } from './stageInstance.ts'; @@ -43,7 +43,7 @@ export interface APIInvite { * * @see {@link https://discord.com/developers/docs/resources/channel#channel-object} */ - channel: Required | null; + channel: APIInviteChannel | null; /** * The user who created the invite * diff --git a/deno/payloads/v9/channel.ts b/deno/payloads/v9/channel.ts index a9b2a6b8..d4c5bad7 100644 --- a/deno/payloads/v9/channel.ts +++ b/deno/payloads/v9/channel.ts @@ -32,6 +32,22 @@ export interface APIPartialChannel { name?: string | null; } +/** + * A channel obtained from fetching an invite. + */ +export interface APIInviteChannel extends Required { + /** + * Icon hash. + */ + icon?: string | undefined; + /** + * The invite channel's recipients. + * + * @remarks Only includes usernames of users. + */ + recipients?: Pick[] | undefined; +} + /** * 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/invite.ts b/deno/payloads/v9/invite.ts index 25b70137..3b4168cd 100644 --- a/deno/payloads/v9/invite.ts +++ b/deno/payloads/v9/invite.ts @@ -3,7 +3,7 @@ */ import type { APIApplication } from './application.ts'; -import type { APIPartialChannel } from './channel.ts'; +import type { APIInviteChannel } from './channel.ts'; import type { APIGuild } from './guild.ts'; import type { APIGuildScheduledEvent } from './guildScheduledEvent.ts'; import type { APIInviteStageInstance } from './stageInstance.ts'; @@ -43,7 +43,7 @@ export interface APIInvite { * * @see {@link https://discord.com/developers/docs/resources/channel#channel-object} */ - channel: Required | null; + channel: APIInviteChannel | null; /** * The user who created the invite * diff --git a/payloads/v10/channel.ts b/payloads/v10/channel.ts index 99759ea7..3fa265a9 100644 --- a/payloads/v10/channel.ts +++ b/payloads/v10/channel.ts @@ -32,6 +32,22 @@ export interface APIPartialChannel { name?: string | null; } +/** + * A channel obtained from fetching an invite. + */ +export interface APIInviteChannel extends Required { + /** + * Icon hash. + */ + icon?: string | undefined; + /** + * The invite channel's recipients. + * + * @remarks Only includes usernames of users. + */ + recipients?: Pick[] | undefined; +} + /** * 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/invite.ts b/payloads/v10/invite.ts index 2d3e499b..a6d27ee4 100644 --- a/payloads/v10/invite.ts +++ b/payloads/v10/invite.ts @@ -3,7 +3,7 @@ */ import type { APIApplication } from './application'; -import type { APIPartialChannel } from './channel'; +import type { APIInviteChannel } from './channel'; import type { APIGuild } from './guild'; import type { APIGuildScheduledEvent } from './guildScheduledEvent'; import type { APIInviteStageInstance } from './stageInstance'; @@ -43,7 +43,7 @@ export interface APIInvite { * * @see {@link https://discord.com/developers/docs/resources/channel#channel-object} */ - channel: Required | null; + channel: APIInviteChannel | null; /** * The user who created the invite * diff --git a/payloads/v9/channel.ts b/payloads/v9/channel.ts index 751f1ea6..60594c4e 100644 --- a/payloads/v9/channel.ts +++ b/payloads/v9/channel.ts @@ -32,6 +32,22 @@ export interface APIPartialChannel { name?: string | null; } +/** + * A channel obtained from fetching an invite. + */ +export interface APIInviteChannel extends Required { + /** + * Icon hash. + */ + icon?: string | undefined; + /** + * The invite channel's recipients. + * + * @remarks Only includes usernames of users. + */ + recipients?: Pick[] | undefined; +} + /** * 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/invite.ts b/payloads/v9/invite.ts index 2d3e499b..a6d27ee4 100644 --- a/payloads/v9/invite.ts +++ b/payloads/v9/invite.ts @@ -3,7 +3,7 @@ */ import type { APIApplication } from './application'; -import type { APIPartialChannel } from './channel'; +import type { APIInviteChannel } from './channel'; import type { APIGuild } from './guild'; import type { APIGuildScheduledEvent } from './guildScheduledEvent'; import type { APIInviteStageInstance } from './stageInstance'; @@ -43,7 +43,7 @@ export interface APIInvite { * * @see {@link https://discord.com/developers/docs/resources/channel#channel-object} */ - channel: Required | null; + channel: APIInviteChannel | null; /** * The user who created the invite *