Lobby Object
Represents a lobby within Discord. See Managing Lobbies for more information.Lobby Structure
Lobby Member Object
Represents a member of a lobby, including optional metadata and flags.Lobby Member Structure
Lobby Member Flags
Example Lobby Object
Create Lobby
POST/lobbies
Creates a new lobby, adding any of the specified members to it, if provided.
Returns a lobby object.
Discord Social SDK clients will not be able to join or leave a lobby created using this API, such as
Client::CreateOrJoinLobby. See Managing Lobbies for more information.JSON Params
Lobby Member JSON Params
Get Lobby
GET/lobbies/{lobby.id}
Returns a lobby object for the specified lobby id, if it exists.
Modify Lobby
PATCH/lobbies/{lobby.id}
Modifies the specified lobby with new values, if provided.
Returns the updated lobby object.
JSON Params
Delete Lobby
DELETE/lobbies/{lobby.id}
Deletes the specified lobby if it exists.
It is safe to call even if the lobby is already deleted as well.
Returns nothing.
Add a Member to a Lobby
PUT/lobbies/{lobby.id}/members/{user.id}
Adds the provided user to the specified lobby. If called when the user is already a member of the lobby will update fields such as metadata on that user instead.
Returns the lobby member object.
JSON Params
Remove a Member from a Lobby
DELETE/lobbies/{lobby.id}/members/{user.id}
Removes the provided user from the specified lobby. It is safe to call this even if the user is no longer a member of the lobby, but will fail if the lobby does not exist.
Returns nothing.
Leave Lobby
DELETE/lobbies/{lobby.id}/members/@me
Removes the current user from the specified lobby. It is safe to call this even if the user is no longer a member of the lobby, but will fail if the lobby does not exist.
Uses Bearer token for authorization.
Returns nothing.
Link Channel to Lobby
PATCH/lobbies/{lobby.id}/channel-linking
Links an existing text channel to a lobby. See Linked Channels for more information.
Uses Bearer token for authorization and user must be a lobby member with CanLinkLobby lobby member flag.
Returns a lobby object with a linked channel.
JSON Params
Unlink Channel from Lobby
PATCH/lobbies/{lobby.id}/channel-linking
Unlinks any currently linked channels from the specified lobby.
Send a request to this endpoint with an empty body to unlink any currently linked channels from the specified lobby.
Uses Bearer token for authorization and user must be a lobby member with CanLinkLobby lobby member flag.
Returns a lobby object without a linked channel.
Update Lobby Message Moderation Metadata
PUT/lobbies/{lobby.id}/messages/{message.id}/moderation-metadata
Sets the moderation metadata for a lobby message. The metadata is app-scoped and delivered to active
game clients via the Social SDK as a realtime message update. See Integrate Moderation
for the full moderation flow.
Uses Bot token for authorization.
Returns HTTP 204: No Content on success.