Skip to content

Commit e94208c

Browse files
authored
Update using-unreal-engine.mdx (#7556)
change client-> to Discord->Client-> so the sample works.
1 parent a7dfd25 commit e94208c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/discord-social-sdk/getting-started/using-unreal-engine.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ Add this code to the `Ready` section of `OnStatusChanged`:
256256
```cpp
257257
if (Status == EDiscordClientStatus::Ready) {
258258
UE_LOG(LogTemplateCharacter, Log, TEXT("Connected to Discord! Ready to go! You can now start using Discord features."));
259-
UE_LOG(LogTemplateCharacter, Log, TEXT("👥 Friends Count: %d"), client->GetRelationships().Num());
259+
UE_LOG(LogTemplateCharacter, Log, TEXT("👥 Friends Count: %d"), Discord->Client->GetRelationships().Num());
260260
}
261261
```
262262

@@ -295,7 +295,7 @@ Add this code to the `Ready` section of `OnStatusChanged`:
295295
```cpp
296296
if (Status == EDiscordClientStatus::Ready) {
297297
UE_LOG(LogTemplateCharacter, Log, TEXT("Connected to Discord! Ready to go! You can now start using Discord features."));
298-
UE_LOG(LogTemplateCharacter, Log, TEXT("👥 Friends Count: %d"), client->GetRelationships().Num());
298+
UE_LOG(LogTemplateCharacter, Log, TEXT("👥 Friends Count: %d"), Discord->Client->GetRelationships().Num());
299299

300300
UE_LOG(LogTemplateCharacter, Log, TEXT("Connected to Discord! Ready to go! You can now start using Discord features."));
301301
UDiscordActivity* Activity = NewObject<UDiscordActivity>();
@@ -717,4 +717,4 @@ You have successfully set up the Discord Social SDK with Unreal Engine and authe
717717
[`Client::Connect`]: https://discord.com/developers/docs/social-sdk/classdiscordpp_1_1Client.html#a873a844c7c4c72e9e693419bb3e290aa
718718
[`Client::GetRelationships`]: https://discord.com/developers/docs/social-sdk/classdiscordpp_1_1Client.html#ad481849835cd570f0e03adafcf90125d
719719
[`Client::UpdateToken`]: https://discord.com/developers/docs/social-sdk/classdiscordpp_1_1Client.html#a606b32cef7796f7fb91c2497bc31afc4
720-
[`RunCallbacks`]: https://discord.com/developers/docs/social-sdk/namespacediscordpp.html#ab5dd8cf274f581ee1885de5816be3c29
720+
[`RunCallbacks`]: https://discord.com/developers/docs/social-sdk/namespacediscordpp.html#ab5dd8cf274f581ee1885de5816be3c29

0 commit comments

Comments
 (0)