2
2
镜像自地址 https://github.com/Hilbis/Hilbish 已同步 2025-07-10 21:12:02 +00:00
Hilbish/docs/bait.txt
2022-08-17 22:01:55 +00:00

11 行
430 B
Plaintext

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
release(name, catcher) > Removes the `catcher` for the event with `name`
For this to work, `catcher` has to be the same function used to catch
an event, like one saved to a variable.
throw(name, ...args) > Throws a hook with `name` with the provided `args`