diff --git a/server/runtime_javascript_nakama.go b/server/runtime_javascript_nakama.go index bab3fdd180..9b881cff1d 100644 --- a/server/runtime_javascript_nakama.go +++ b/server/runtime_javascript_nakama.go @@ -3538,7 +3538,7 @@ func (n *runtimeJavascriptNakamaModule) matchGet(r *goja.Runtime) func(goja.Func // @group matches // @summary List currently running realtime multiplayer matches and optionally filter them by authoritative mode, label, and current participant count. // @param limit(type=number, optional=true, default=1) The maximum number of matches to list. -// @param authoritative(type=bool, optional=true, default=false) Set true to only return authoritative matches, false to only return relayed matches. +// @param authoritative(type=bool, optional=true, default=nil) Set true to only return authoritative matches, false to only return relayed matches and nil to return both. // @param label(type=string, optional=true, default="") A label to filter authoritative matches by. Default "" meaning any label matches. // @param minSize(type=number, optional=true) Inclusive lower limit of current match participants. // @param maxSize(type=number, optional=true) Inclusive upper limit of current match participants. diff --git a/server/runtime_lua_nakama.go b/server/runtime_lua_nakama.go index 00276034a0..1c7c4a287e 100644 --- a/server/runtime_lua_nakama.go +++ b/server/runtime_lua_nakama.go @@ -4828,7 +4828,7 @@ func (n *RuntimeLuaNakamaModule) matchSignal(l *lua.LState) int { // @group matches // @summary List currently running realtime multiplayer matches and optionally filter them by authoritative mode, label, and current participant count. // @param limit(type=number, optional=true, default=1) The maximum number of matches to list. -// @param authoritative(type=bool, optional=true, default=false) Set true to only return authoritative matches, false to only return relayed matches. +// @param authoritative(type=bool, optional=true, default=nil) Set true to only return authoritative matches, false to only return relayed matches and nil to return both. // @param label(type=string, optional=true, default="") A label to filter authoritative matches by. Default "" means any label matches. // @param minSize(type=number, optional=true) Inclusive lower limit of current match participants. // @param maxSize(type=number, optional=true) Inclusive upper limit of current match participants.