Return Slash Choices (Effect) — DiSky
Addon: DiSky · Category: Effect · Since: 5.0.0-a2
Syntax
return [the] [slash] (choices|completions) %types.slashchoice/texts/numbers%Description
Answers an autocomplete request with up to 25 suggestions and stops the trigger. Give choices, or plain texts / numbers (used as both the label and the value). Only in 'on slash completion' and in an 'on completion request:' section of a slash command structure.
Examples
on slash completion:
if current argument is "color":
return choices "red", "green" and "blue"