Skip to content

Commit f7f9a5b

Browse files
Fix result check (#7905)
1 parent e10a521 commit f7f9a5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/discord-social-sdk/development-guides/using-provisional-accounts.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ If you'd like to set the display name for a provisional account, you can use the
284284

285285
```cpp
286286
client->UpdateProvisionalAccountDisplayName("CoolPlayer123", [](discordpp::ClientResult result) {
287-
if (!result.Successful()) {
287+
if (result.Successful()) {
288288
std::cout << "✅ Display name updated\n";
289289
}
290290
}

0 commit comments

Comments
 (0)