feat(InteractionResolvedChannels): add parent_id and thread_metadata fields to resolved channels (#210)

This commit is contained in:
Suneet Tipirneni
2021-10-02 08:30:02 -04:00
committed by GitHub
parent b453d75e4d
commit 64e4e5246c
2 changed files with 6 additions and 2 deletions

View File

@@ -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<APIPartialChannel> {
thread_metadata?: APIThreadMetadata | null;
permissions: Permissions;
parent_id?: string | null;
}
/**

View File

@@ -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<APIPartialChannel> {
thread_metadata?: APIThreadMetadata | null;
permissions: Permissions;
parent_id?: string | null;
}
/**