From 64e4e5246cd61eadf35591b8afdf4c5922fd4086 Mon Sep 17 00:00:00 2001 From: Suneet Tipirneni <77477100+suneettipirneni@users.noreply.github.com> Date: Sat, 2 Oct 2021 08:30:02 -0400 Subject: [PATCH] feat(InteractionResolvedChannels): add `parent_id` and `thread_metadata` fields to resolved channels (#210) --- deno/payloads/v9/_interactions/applicationCommands.ts | 4 +++- payloads/v9/_interactions/applicationCommands.ts | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/deno/payloads/v9/_interactions/applicationCommands.ts b/deno/payloads/v9/_interactions/applicationCommands.ts index 3a2c43e1..cda6b362 100644 --- a/deno/payloads/v9/_interactions/applicationCommands.ts +++ b/deno/payloads/v9/_interactions/applicationCommands.ts @@ -1,5 +1,5 @@ import type { Permissions, Snowflake } from '../../../globals.ts'; -import type { APIPartialChannel } from '../channel.ts'; +import type { APIPartialChannel, APIThreadMetadata } from '../channel.ts'; import type { APIGuildMember } from '../guild.ts'; import type { APIBaseInteraction } from './base.ts'; import type { InteractionType } from './responses.ts'; @@ -85,7 +85,9 @@ export type APIApplicationCommandInteractionData = * https://discord.com/developers/docs/resources/channel#channel-object */ export interface APIInteractionDataResolvedChannel extends Required { + thread_metadata?: APIThreadMetadata | null; permissions: Permissions; + parent_id?: string | null; } /** diff --git a/payloads/v9/_interactions/applicationCommands.ts b/payloads/v9/_interactions/applicationCommands.ts index 98bfd453..1d02c61d 100644 --- a/payloads/v9/_interactions/applicationCommands.ts +++ b/payloads/v9/_interactions/applicationCommands.ts @@ -1,5 +1,5 @@ import type { Permissions, Snowflake } from '../../../globals'; -import type { APIPartialChannel } from '../channel'; +import type { APIPartialChannel, APIThreadMetadata } from '../channel'; import type { APIGuildMember } from '../guild'; import type { APIBaseInteraction } from './base'; import type { InteractionType } from './responses'; @@ -85,7 +85,9 @@ export type APIApplicationCommandInteractionData = * https://discord.com/developers/docs/resources/channel#channel-object */ export interface APIInteractionDataResolvedChannel extends Required { + thread_metadata?: APIThreadMetadata | null; permissions: Permissions; + parent_id?: string | null; } /**