$awaitMenu

To wait for a menu option to be selected and return the selected options values. If nothing is selected, it returns undefined.If multiple values are selected, all of them will be returned, separated with,`.

Usage

$awaitMenu[Message (optional);user id (optional, default:author);timeout (optional, default:15s);menu id1 (optional);menu id2...]

Timeout

It means the maximum time bot can wait user message for.
it accept format of time like 10s.
The max time is 60 x bot tier seconds, for example for tier 3 it would be 180 seconds.

Example:

Member02/20/2024
!!exec You selected: $awaitMenu[
{title: Test}
{menu:
{id=test}
{placeholder=Select}
{min=1}
{max=1}
{label=Mido}
{desc=A guy}
{value=mido}
{label=Rake}
{desc=Another guy}
{value=rake}
}
;$authorID;;test]