swc/crates/swc_bundler/tests/.cache/deno/e0c25675fa160d443fa68d7205f49d64dea5ff6a.ts
2021-11-09 20:42:49 +09:00

18 lines
869 B
TypeScript

// Loaded from https://deno.land/x/discordeno@11.0.0-rc.2/src/types/interactions/interaction_response_types.ts
/** https://discord.com/developers/docs/interactions/slash-commands#interaction-response-interactionresponsetype */
export enum DiscordInteractionResponseTypes {
/** ACK a `Ping` */
Pong = 1,
/** Respond to an interaction with a message */
ChannelMessageWithSource = 4,
/** ACK an interaction and edit a response later, the user sees a loading state */
DeferredChannelMessageWithSource = 5,
/** It has no data fields. You can send this type **only in response to a button interaction .** It will acknowledge the interaction and update the button to a loading state. */
DeferredMessageUpdate,
}
export type InteractionResponseTypes = DiscordInteractionResponseTypes;
export const InteractionResponseTypes = DiscordInteractionResponseTypes;