swc/bundler/tests/.cache/deno/3a3f50eddfa75eaaaaafdf6417cabe06988e0a4a.ts
강동윤 d60c3242af
fix(swc): Fix bugs (#1739)
swc_bundler:
 - Fix cycle detection for complex circular imports. (denoland/deno#10752)

swc_ecma_transforms_typescript:
 - Allow using large values for an enum variant.
2021-05-25 14:30:17 +09:00

35 lines
1.3 KiB
TypeScript

// Loaded from https://deno.land/x/discordeno@11.0.0-rc.2/src/types/interactions/interaction.ts
import { Message } from "../messages/message.ts";
import { User } from "../users/user.ts";
import { ApplicationCommandInteractionData } from "./commands/application_command_interaction_data.ts";
import { InteractionGuildMember } from "./interaction_guild_member.ts";
import { DiscordInteractionTypes } from "./interaction_types.ts";
/** https://discord.com/developers/docs/interactions/slash-commands#interaction */
export interface Interaction {
/** Id of the interaction */
id: string;
/** Id of the application this interaction is for */
applicationId: string;
/** The type of interaction */
type: DiscordInteractionTypes;
/** The command data payload */
data?: ApplicationCommandInteractionData;
/** The guild it was sent from */
guildId?: string;
/** The channel it was sent from */
channelId?: string;
/** Guild member data for the invoking user, including permissions */
member?: InteractionGuildMember;
/** User object for the invoking user, if invoked in a DM */
user?: User;
/** A continuation token for responding to the interaction */
token: string;
/** Read-only property, always `1` */
version: 1;
/** For the message the button was attached to */
message?: Message;
}