mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-18 01:07:22 +00:00
fix: upload files in interaction response #1104
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user