Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/natico/examples/deps.ts>InteractionData

A powerful and customizable framework for Discordeno
Latest
interface InteractionData
Re-export
import { type InteractionData } from "https://deno.land/x/natico@4.0.0-pre.4/examples/deps.ts";

Properties

optional
componentType: MessageComponentTypes

The type of component

optional
customId: string

The custom id provided for this component.

optional
components: MessageComponents

The components if its a Modal Submit interaction.

optional
values: string[]

The values chosen by the user.

id: string

The Id of the invoked command

name: string

The name of the invoked command

optional
resolved: { messages?: Record<string, Message>; users?: Record<string, User>; members?: Record<string, Omit<InteractionGuildMember, "user" | "deaf" | "mute">>; roles?: Record<string, Role>; channels?: Record<string, Pick<Channel,
| "id"
| "name"
| "type"
| "permissions"
>>; }

Converted users + roles + channels

optional
options: InteractionDataOption[]

The params + values from the user

optional
targetId: string

The target id if this is a context menu command.