mirror of
https://github.com/swc-project/swc.git
synced 2024-12-21 12:41:54 +03:00
d60c3242af
swc_bundler: - Fix cycle detection for complex circular imports. (denoland/deno#10752) swc_ecma_transforms_typescript: - Allow using large values for an enum variant.
18 lines
869 B
TypeScript
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;
|