$awaitMenu
To wait for a menu option to be selected and return the selected option(s) 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
The maximum time the bot waits for a user to select an option.
Accepts time in the format 10s for example.
The max time is 60 x (bot tier + 1) seconds, for example for tier 3 it would be 240 seconds.
Example:
!!exec You selected: $awaitMenu[ {title: Test} {menu: {id=test} {placeholder=Select} {min=1} {max=1} {option=Mido} {desc=A guy} {value=mido} {option=Rake} {desc=Another guy} {value=rake} };$authorID;;test]

Function Cooldown
This function has built-in cooldown. Why? Read more about cooldowns here.
- Cooldown: 2 seconds
- Tracked By: User
- Type:
channeluser
Functions with the same type share cooldowns based on the same Tracked By value.