fix(client/callback): mark delay as optional

This commit is contained in:
Linden
2023-09-15 22:32:55 +10:00
parent 61e3ba9904
commit 02d935237d

View File

@@ -67,8 +67,8 @@ lib.callback = setmetatable({}, {
}) })
---@param event string ---@param event string
---@param delay number | false prevent the event from being called for the given time ---@param delay? number | false prevent the event from being called for the given time.
--- Sends an event to the server and halts the current thread until a response is returned. ---Sends an event to the server and halts the current thread until a response is returned.
function lib.callback.await(event, delay, ...) function lib.callback.await(event, delay, ...)
return triggerServerCallback(nil, event, delay, false, ...) return triggerServerCallback(nil, event, delay, false, ...)
end end