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

x/natico/examples/deps.ts>DiscordenoInteraction

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

Properties

id: bigint

Id of the interaction

applicationId: bigint

Id of the application this interaction is for

optional
guildId: bigint

The guild it was sent from

optional
channelId: bigint

The channel it was sent from

optional
member: DiscordenoMember

Guild member data for the invoking user, including permissions

User object for the invoking user, if invoked in a DM

optional
message: DiscordenoMessage

For the message the button was attached to

The type of interaction

token: string

A continuation token for responding to the interaction

version: 1

Read-only property, always 1

optional
data: { componentType?: MessageComponentTypes; customId?: string; components?: MessageComponents; values?: string[]; id?: bigint; name?: string; resolved?: { messages?: Collection<bigint, DiscordenoMessage>; users?: Collection<bigint, DiscordenoUser>; members?: Collection<bigint, DiscordenoMember>; roles?: Collection<bigint, DiscordenoRole>; channels?: Collection<bigint, { id: bigint; name: string; type: ChannelTypes; permissions: bigint; }>; }; options?: InteractionDataOption[]; targetId?: bigint; }