feat(APIApplicationCommandInteractionData): add resolved (#86)

Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
Advaith
2021-03-15 16:05:44 -07:00
committed by GitHub
parent 76651acd49
commit 24155aeb71
2 changed files with 14 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
import type { Permissions, Snowflake } from '../../common/mod.ts';
import type { RESTPostAPIWebhookWithTokenJSONBody } from '../rest/mod.ts';
import type { APIGuildMember, APIUser, MessageFlags } from './mod.ts';
import type { APIGuildMember, APIPartialChannel, APIRole, APIUser, MessageFlags } from './mod.ts';
/**
* https://discord.com/developers/docs/interactions/slash-commands#applicationcommand
@@ -160,6 +160,12 @@ export interface APIApplicationCommandInteractionData {
id: Snowflake;
name: string;
options?: APIApplicationCommandInteractionDataOption[];
resolved?: {
users?: Record<string, APIUser>;
roles?: Record<string, APIRole>;
members?: Record<string, Omit<APIGuildMember, 'user' | 'deaf' | 'mute'> & { permissions: Permissions }>;
channels?: Record<string, Required<APIPartialChannel> & { permissions: Permissions }>;
};
}
/**

View File

@@ -1,6 +1,6 @@
import type { Permissions, Snowflake } from '../../common/index';
import type { RESTPostAPIWebhookWithTokenJSONBody } from '../rest/index';
import type { APIGuildMember, APIUser, MessageFlags } from './index';
import type { APIGuildMember, APIPartialChannel, APIRole, APIUser, MessageFlags } from './index';
/**
* https://discord.com/developers/docs/interactions/slash-commands#applicationcommand
@@ -160,6 +160,12 @@ export interface APIApplicationCommandInteractionData {
id: Snowflake;
name: string;
options?: APIApplicationCommandInteractionDataOption[];
resolved?: {
users?: Record<string, APIUser>;
roles?: Record<string, APIRole>;
members?: Record<string, Omit<APIGuildMember, 'user' | 'deaf' | 'mute'> & { permissions: Permissions }>;
channels?: Record<string, Required<APIPartialChannel> & { permissions: Permissions }>;
};
}
/**