> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# PartyLocalChatControl::SetTextChatOptions

> Configures the text chat options associated with text chat for this chat control.

Configures the text chat options associated with text chat for this chat control.

## Syntax

```cpp theme={null}
PartyError SetTextChatOptions(  
    PartyTextChatOptions options,  
    void* asyncIdentifier  
)  
```

### Parameters

**`options`**   [PartyTextChatOptions](/services/playfab/multiplayer/networking/reference/enums/partytextchatoptions)

Options associated with text chat, such as whether incoming text chat should be translated.

**`asyncIdentifier`**   void\*\
*optional*

An optional, app-defined, pointer-sized context value that can be used to associate the completion state change with this call.

### Return value

PartyError

`c_partyErrorSuccess` if the asynchronous operation to set the chat text options began, or an error code otherwise. If this method fails, no related state changes will be generated. The human-readable form of the error code can be retrieved via [PartyManager::GetErrorMessage()](/services/playfab/multiplayer/networking/reference/classes/PartyManager/methods/partymanager_geterrormessage).

## Requirements

**Header:** Party.h

## See also

[PartyLocalChatControl](/services/playfab/multiplayer/networking/reference/classes/PartyLocalChatControl/partylocalchatcontrol)


## Related topics

- [PartyTextChatOptions](/services/playfab/multiplayer/networking/reference/enums/partytextchatoptions.md)
- [PartyChatTextReceivedStateChange](/services/playfab/multiplayer/networking/reference/structs/partychattextreceivedstatechange.md)
- [PartyTextChatFilterLevel](/services/playfab/multiplayer/networking/reference/enums/partytextchatfilterlevel.md)
- [PlayFab Party Release Notes](/services/playfab/multiplayer/networking/release-notes.md)
- [Using text moderation](/services/playfab/community/voice-communications/concepts-text-moderation.md)
