Skip to content
Embed & Message autocompleteFromList

$autocompleteFromList — In an autocomplete script, suggests every item of a list in one call (replaces one $appendOptionSuggestion per choice)

In an autocomplete script, suggests every item of a list in one call (replaces one `$appendOptionSuggestion` per choice).

Syntax

$autocompleteFromList[list;(separator);(filter)]

Parameters

  • list (text, required) — The items, joined by the separator.
  • separator (text, optional) — Default: ,.
  • filter (yes or no, optional) — yes (default): only the items that contain what the member typed.

Return Value

  • empty.

Usage

$autocompleteFromList[red,green,blue]

Important Notes

  • Discord shows 25 suggestions at most; an item longer than 100 characters, or not a number for a number option, is skipped.

Example

$autocompleteFromList[red,green,blue]

Try it

Paste an example into the playground to preview its message (functions that act on Discord are not run), or build the same thing with blocks.