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

x/harmony/src/interactions/mod.ts>InteractionsClient#autocomplete

An easy to use Discord API Library for Deno.
Latest
method InteractionsClient.prototype.autocomplete
Re-export
import { InteractionsClient } from "https://deno.land/x/harmony@v2.9.1/src/interactions/mod.ts";

Add a handler for autocompletions (for application command options).

Parameters

cmd: string

Command name. Can be *

option: string

Option name. Can be *

Handler callback that is fired when a matching Autocomplete Interaction comes in.