Skip to content

Latest commit

 

History

History
18 lines (11 loc) · 514 Bytes

File metadata and controls

18 lines (11 loc) · 514 Bytes

Autocomplete

Declares a method as the source of suggestions for one of the command's options.

use Tempcord\Attributes\Autocomplete;

Applies to: method

Parameters

Name Type Default Description
option BackedEnum|string required the name of the option this completes, as Discord knows it — the parameter's name, or whatever #[Option(name: ...)] renamed it to