Skip to content

Commit c9d5837

Browse files
committed
Fix Social SDK leaving lobby
1 parent 7629dee commit c9d5837

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/discord-social-sdk/development-guides/managing-lobbies.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@ To remove a user from a lobby, use the [`Client::LeaveLobby`] function. Only lob
9393
9494
```cpp
9595
// Leaving a lobby from the client
96-
client->LeaveLobby(01234567890, [](discordpp::ClientResult result, uint64_t lobbyId) {
96+
client->LeaveLobby(01234567890, [](discordpp::ClientResult result) {
9797
if(result.Successful()) {
98-
std::cout << "🎮 Left lobby successfully! Lobby Id: " << lobbyId << std::endl;
98+
std::cout << "🎮 Left lobby successfully! Lobby Id: 01234567890\n";
9999
} else {
100100
std::cerr << "❌ Leaving lobby failed\n";
101101
}

0 commit comments

Comments
 (0)