diff --git a/versions/doc-improvements/docs/api/bait/index.html b/versions/doc-improvements/docs/api/bait/index.html index 8e972c3..b672271 100644 --- a/versions/doc-improvements/docs/api/bait/index.html +++ b/versions/doc-improvements/docs/api/bait/index.html @@ -40,4 +40,11 @@ an event, like one saved to a variable.

Par 7-- and now hookCallback will no longer be ran for the event.

bait.throw(name, ...args)

Throws a hook with name with the provided args.

Parameters -

string name
The name of the hook.

any args (This type is variadic. You can pass an infinite amount of parameters with this type.)
The arguments to pass to the hook.

\ No newline at end of file +

string name
The name of the hook.

any args (This type is variadic. You can pass an infinite amount of parameters with this type.)
The arguments to pass to the hook.

Example +
1bait.throw('greeting', 'world')
+2
+3-- This can then be listened to via
+4bait.catch('gretting', function(greetTo)
+5	print('Hello ' .. greetTo)
+6end)
+
\ No newline at end of file