diff --git a/deno/payloads/v8/channel.ts b/deno/payloads/v8/channel.ts index b85a46f1f..dba084d47 100644 --- a/deno/payloads/v8/channel.ts +++ b/deno/payloads/v8/channel.ts @@ -6,6 +6,7 @@ import type { Permissions, Snowflake } from '../../globals.ts'; import type { APIPartialEmoji } from './emoji.ts'; import type { APIGuildMember } from './guild.ts'; import type { APIMessageInteraction } from './interactions.ts'; +import { APIApplication } from './oauth2.ts'; import type { APIRole } from './permissions.ts'; import type { APIUser } from './user.ts'; @@ -302,7 +303,7 @@ export interface APIMessage { * * See https://discord.com/developers/docs/resources/channel#message-object-message-application-structure */ - application?: APIMessageApplication; + application?: Partial; /** * Reference data sent with crossposted messages and replies * @@ -387,32 +388,6 @@ export interface APIMessageActivity { party_id?: string; } -/** - * https://discord.com/developers/docs/resources/channel#message-object-message-application-structure - */ -export interface APIMessageApplication { - /** - * ID of the application - */ - id: Snowflake; - /** - * ID of the embed's image asset - */ - cover_image?: string; - /** - * Application's description - */ - description: string; - /** - * ID of the application's icon - */ - icon: string | null; - /** - * Name of the application - */ - name: string; -} - /** * https://discord.com/developers/docs/resources/channel#message-object-message-reference-structure */ diff --git a/deno/payloads/v8/interactions.ts b/deno/payloads/v8/interactions.ts index e0da2ef60..725a2bc40 100644 --- a/deno/payloads/v8/interactions.ts +++ b/deno/payloads/v8/interactions.ts @@ -234,10 +234,10 @@ export interface APIApplicationCommandInteractionData { name: string; options?: APIApplicationCommandInteractionDataOption[]; resolved?: { - users?: Record; - roles?: Record; - members?: Record & { permissions: Permissions }>; - channels?: Record & { permissions: Permissions }>; + users?: Record; + roles?: Record; + members?: Record & { permissions: Permissions }>; + channels?: Record & { permissions: Permissions }>; }; } diff --git a/payloads/v8/channel.ts b/payloads/v8/channel.ts index 238996e64..6bf3b06f8 100644 --- a/payloads/v8/channel.ts +++ b/payloads/v8/channel.ts @@ -6,6 +6,7 @@ import type { Permissions, Snowflake } from '../../globals'; import type { APIPartialEmoji } from './emoji'; import type { APIGuildMember } from './guild'; import type { APIMessageInteraction } from './interactions'; +import { APIApplication } from './oauth2'; import type { APIRole } from './permissions'; import type { APIUser } from './user'; @@ -302,7 +303,7 @@ export interface APIMessage { * * See https://discord.com/developers/docs/resources/channel#message-object-message-application-structure */ - application?: APIMessageApplication; + application?: Partial; /** * Reference data sent with crossposted messages and replies * @@ -387,32 +388,6 @@ export interface APIMessageActivity { party_id?: string; } -/** - * https://discord.com/developers/docs/resources/channel#message-object-message-application-structure - */ -export interface APIMessageApplication { - /** - * ID of the application - */ - id: Snowflake; - /** - * ID of the embed's image asset - */ - cover_image?: string; - /** - * Application's description - */ - description: string; - /** - * ID of the application's icon - */ - icon: string | null; - /** - * Name of the application - */ - name: string; -} - /** * https://discord.com/developers/docs/resources/channel#message-object-message-reference-structure */