swc/crates/swc_bundler/tests/.cache/deno/3a3f50eddfa75eaaaaafdf6417cabe06988e0a4a.ts

35 lines
1.3 KiB
TypeScript
Raw Normal View History

// 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;
}