Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/denocordts/src/structures/interaction/interaction.ts>Interaction

An Object Oriented Discord API wrapper for Deno.
Latest
class Interaction
import { Interaction } from "https://deno.land/x/denocordts@1.2.0/src/structures/interaction/interaction.ts";

Constructors

new
Interaction(
interaction: APIInteraction & { locale: string; },
token: string,
client: Base,
)

Properties

protected
deferred: boolean
protected
replied: boolean
guild
isAutoComplete: boolean
isCommand: boolean
isComponentInteraction: boolean
isMessageContextMenu: boolean
isModalSubmit: boolean
isUserContextMenu: boolean
targetedUsers: undefined | User[]
targetMembers: undefined | Omit<GuildMember, "user" | "deaf" | "mute">[]
targetMessage: undefined | (Message | ClientMessage)[]