2
2
mirror of https://github.com/Hilbis/Hilbish synced 2025-04-01 19:23:24 +00:00

docs(bait): document catchOnce

This commit is contained in:
TorchedSammy 2021-12-07 17:41:41 -04:00
parent c6edbc20af
commit 6bff669abe
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD

View File

@ -1,4 +1,6 @@
catch(name, cb) > Catches a hook with `name`. Runs the `cb` when it is thrown
catchOnce(name, cb) > Same as catch, but only runs the `cb` once and then removes the hook
throw(name, ...args) > Throws a hook with `name` with the provided `args`