Skip to content

Latest commit

 

History

History
19 lines (12 loc) · 656 Bytes

File metadata and controls

19 lines (12 loc) · 656 Bytes

SelectMenu

Declares a class or method as the handler for a select menu choice.

use Tempcord\Attributes\SelectMenu;

Applies to: class, method

Parameters

Name Type Default Description
id BackedEnum|string|null null the menu's custom id, which may carry {placeholders}. Defaults to the class name with a SelectMenu prefix or suffix stripped and the rest snake_cased.
middleware array [] run in the order given, outermost first; any of them may answer instead of letting the handler run