> ## 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.

# PartyChatControlDestroyedStateChange

> Information specific to the *ChatControlDestroyed* type of state change.

Information specific to the *ChatControlDestroyed* type of state change.

## Syntax

```cpp theme={null}
struct PartyChatControlDestroyedStateChange : PartyStateChange {  
    PartyChatControl* chatControl;  
    PartyDestroyedReason reason;  
    PartyError errorDetail;  
}  
```

### Members

**`chatControl`**   [PartyChatControl](/services/playfab/multiplayer/networking/reference/classes/PartyChatControl/partychatcontrol)\*

The chat control that was destroyed.

The memory remains valid until this state change is returned.

**`reason`**   [PartyDestroyedReason](/services/playfab/multiplayer/networking/reference/enums/partydestroyedreason)

The reason the chat control was destroyed.

**`errorDetail`**   PartyError

A diagnostic value providing additional troubleshooting information regarding any potential error condition.

The human-readable form of this error detail can be retrieved via [PartyManager::GetErrorMessage()](/services/playfab/multiplayer/networking/reference/classes/PartyManager/methods/partymanager_geterrormessage).

## Requirements

**Header:** Party.h

## See also

[Party members](/services/playfab/multiplayer/networking/reference/party_members)\
[PartyLocalDevice::DestroyChatControl](/services/playfab/multiplayer/networking/reference/classes/PartyLocalDevice/methods/partylocaldevice_destroychatcontrol)


## Related topics

- [PartyRemoveLocalUserCompletedStateChange](/services/playfab/multiplayer/networking/reference/structs/partyremovelocalusercompletedstatechange.md)
- [PartyLocalDevice::DestroyChatControl](/services/playfab/multiplayer/networking/reference/classes/PartyLocalDevice/methods/partylocaldevice_destroychatcontrol.md)
- [PartyManager::GetChatControls](/services/playfab/multiplayer/networking/reference/classes/PartyManager/methods/partymanager_getchatcontrols.md)
- [PartyDevice::GetChatControls](/services/playfab/multiplayer/networking/reference/classes/PartyDevice/methods/partydevice_getchatcontrols.md)
- [PartyLocalDevice::CreateChatControl](/services/playfab/multiplayer/networking/reference/classes/PartyLocalDevice/methods/partylocaldevice_createchatcontrol.md)
