Skip to main content
Module

x/biscuit/mod.ts>BaseInteraction

A Discord library that is easy to use but reliable on its core 🥠
Latest
class BaseInteraction
implements Model
Re-export
Abstract
import { BaseInteraction } from "https://deno.land/x/biscuit@0.2.4/mod.ts";

Constructors

new
BaseInteraction(session: Session, data: DiscordInteraction)

Properties

optional
applicationId: Snowflake
optional
appPermissions: Permsisions
optional
channelId: Snowflake
readonly
createdAt: Date
readonly
createdTimestamp: number
optional
guildId: Snowflake
readonly
id: Snowflake
optional
member: Member
responded: boolean
readonly
session: Session
readonly
token: string
optional
user: User
readonly
version: 1

Methods

deleteFollowUp(messageId: Snowflake, threadId?: Snowflake): Promise<void>
editFollowUp(messageId: Snowflake, options?: { threadId: Snowflake; }): Promise<Message>
editReply(options: EditWebhookMessage & { messageId?: Snowflake; }): Promise<Message | undefined>
fetchFollowUp(messageId: Snowflake, threadId?: Snowflake): Promise<Message | undefined>
inGuild(): this is this & { guildId: Snowflake; }
respond(resp: InteractionResponse): Promise<Message | undefined>
respond(resp: InteractionResponseWith): Promise<Message | undefined>