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

x/harmony/src/interactions/decorators.ts>autocomplete

An easy to use Discord API Library for Deno.
Go to Latest
function autocomplete
import { autocomplete } from "https://deno.land/x/harmony@v2.6.0/src/interactions/decorators.ts";

Decorator to add a autocomplete interaction handler.

Example:

class MyClient extends Client {
  // ...

Parameters

command: string

Command name of which options' to provide autocompletions for. Can be * (all).

option: string

Option name to handle autocompletions for. Can be * (all).

Returns

AutocompleteDecorator