You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/documentation/api/Lobby.md
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -147,13 +147,14 @@ Allows a player to join a particular match instance `id` of a game named `name`.
147
147
148
148
Accepts three JSON body parameters:
149
149
150
-
-`playerID` (required): the ordinal player in the match that is being joined (`'0'`, `'1'`...).
151
-
152
150
-`playerName` (required): the display name of the player joining the match.
153
151
152
+
-`playerID` (optional): the ordinal player in the match that is being joined (`'0'`, `'1'`...).
153
+
If not sent, will be automatically assigned to the first available ordinal.
154
+
154
155
-`data` (optional): additional metadata to associate with the player.
155
156
156
-
Returns `playerCredentials` which is the token this player will require to authenticate their actions in the future.
157
+
Returns `playerCredentials` which is the token this player will require to authenticate their actions in the future and `playerID`, which can be useful if you didn’t specify a `playerID` when making the request.
0 commit comments