Skip to main content
Module

x/harmony/deploy.ts>SlashClient#autocomplete

An easy to use Discord API Library for Deno.
Go to Latest
method SlashClient.prototype.autocomplete
import { SlashClient } from "https://deno.land/x/harmony@v2.9.0/deploy.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.