Skip to content

Interface: CommandsApi ​

Commands contributed in the manifest.

Properties ​

onRun ​

readonly onRun: (id, handler) => void

Runs handler when the user picks the command with this manifest id.

Parameters ​

id ​

string

handler ​

() => void | Promise<void>

Returns ​

void

Released under the MIT License. Development supported by Ensita. YapYap is unofficial and not affiliated with WhatsApp or Meta.