fix: upload files in interaction response #1104

This commit is contained in:
Skillz4Killz
2021-09-13 01:37:24 +00:00
committed by GitHub
parent 9d0d2343ca
commit fec307afa0
@@ -1,19 +1,7 @@
import { Embed } from "../../embeds/embed.ts";
import { AllowedMentions } from "../../messages/allowed_mentions.ts";
import { MessageComponents } from "../../messages/components/message_components.ts";
import { CreateMessage } from "../../messages/create_message.ts";
/** https://discord.com/developers/docs/interactions/slash-commands#interaction-response-interactionapplicationcommandcallbackdata */
export interface InteractionApplicationCommandCallbackData {
/** Is the response TTS */
tts?: boolean;
/** Message content */
content?: string;
/** Supports up to 10 embeds */
embeds?: Embed[];
/** Allowed Mentions object */
allowedMentions?: AllowedMentions;
export interface InteractionApplicationCommandCallbackData extends Omit<CreateMessage, "messageReference"> {
/** Set to `64` to make your response ephemeral */
flags?: number;
/** The components you would like to have sent in this message */
components?: MessageComponents;
}