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

x/higa/deno/client/managers/InteractionManager.ts>InteractionManager

A package to interract with the Discord API coded by myself
Latest
class InteractionManager
import { InteractionManager } from "https://deno.land/x/higa@0.1.2/deno/client/managers/InteractionManager.ts";

Constructors

new
InteractionManager(applicationId: string, version: APIVersions)

Properties

readonly
version: APIVersions

API Version

Methods

createFollowupMessage(interactionToken: string, otpions: ExecuteWebhookOptions): Promise<Message>

Create a followup message to the message that triggered the webhook

createInteractionResponse(
interactionId: string,
interactionToken: string,
): Promise<void>

Sends a response to an interaction

deleteFollowupMessage(interactionToken: string, messageId: string): Promise<void>

Delete a followup message from a message

deleteOriginalInteractionResponse(iterationToken: string): Promise<void>

Delete the original message that was sent by the bot

editFollowupMessage(
interactionToken: string,
messageId: string,
): Promise<Message>

Edit a followup message from a message

editOriginalInteractionResponse(iterationToken: string, options: ExecuteWebhookOptions): Promise<Message>

Edit the original message that triggered the webhook

getFollowupMessage(interactionToken: string, messageId: string): Promise<Message>

Get a followup message from a message

getOriginalInteractionResponse(interactionToken: string): Promise<Message>

Get the original message that was sent by the user that triggered the interaction