@@ -104,6 +104,21 @@ You can use this metadata to render a placeholder message for players and can li
104104
105105There is also more information about [ messages in the Discord API] ( /docs/resources/message ) documentation.
106106
107+ ## In-Game Direct Message Settings
108+
109+ The Discord client provides a preference screen for users to be able to control who can DM them in-game via the
110+ Social SDK.
111+
112+ ![ Discord content and social - Connected game settings] ( images/social-sdk/development-guides/discord-game-dm-settings.png )
113+
114+ You cannot control these settings directly with the Social SDK. However, you can call
115+ [ ` Client::OpenConnectedGamesSettingsInDiscord ` ] , which opens the Connected Games settings in the Discord client,
116+ where users can manage their direct messaging settings related to games using the Discord Social SDK.
117+
118+ If the client isn't connected or the user is a provisional account, this function does nothing.
119+
120+ It is always a no-op for console platforms.
121+
107122---
108123
109124## Next Steps
@@ -128,13 +143,15 @@ Now that you know how to send and receive messages, check out these other Discor
128143
129144## Change Log
130145
131- | Date | Changes |
132- | ----------------| -----------------|
133- | March 17, 2025 | initial release |
146+ | Date | Changes |
147+ | ----------------| ---------------------|
148+ | May 06, 2025 | link to DM Settings |
149+ | March 17, 2025 | initial release |
134150
135151{ /* Autogenerated Reference Links */ }
136152[ `ChannelHandle` ] : https://discord.com/developers/docs/social-sdk/classdiscordpp_1_1ChannelHandle.html#a251a2799d80ce466b4e7c0c7a05801fb
137153[ `Client::CanOpenMessageInDiscord` ] : https://discord.com/developers/docs/social-sdk/classdiscordpp_1_1Client.html#ae2aac143a691091691c5cc75aa07dace
154+ [ `Client::OpenConnectedGamesSettingsInDiscord` ] : https://discord.com/developers/docs/social-sdk/classdiscordpp_1_1Client.html#a24f268f5eebe9919a3f774354eb577e0
138155[ `Client::OpenMessageInDiscord` ] : https://discord.com/developers/docs/social-sdk/classdiscordpp_1_1Client.html#a66b8f85b14403a5d5ea125f39aa6e1b1
139156[ `Client::SetMessageCreatedCallback` ] : https://discord.com/developers/docs/social-sdk/classdiscordpp_1_1Client.html#a28325a8e8c688a84ac851da4bc86e148
140157[ `Client::SetMessageDeletedCallback` ] : https://discord.com/developers/docs/social-sdk/classdiscordpp_1_1Client.html#a2b6079eded10bea29abbb9695702637b
0 commit comments