# Chat Room

{% hint style="success" %}

#### Like what your seeing?

Support us as a [GitHub Sponsor](/old-kb/where-to-buy/become-a-sponsor.md) and get instant access to all our assets, exclusive tools and assets, escalated support and issue tracking and our gratitude.\
\
These articles are made possible by our [GitHub Sponsors](/old-kb/where-to-buy/become-a-sponsor.md) ... become a sponsor today!
{% endhint %}

## Introduction

```csharp
using HeathenEngineering.SteamworksIntegration;
```

```csharp
public struct ChatRoom
```

The clan chat room structure is used by chat-specific features of the Clans interface and is itself a shortcut to the most common chat features.

## Fields and Attributes

<table><thead><tr><th width="193.7178270108939">Type</th><th width="150">Name</th><th width="379.4856019593156">Comment</th></tr></thead><tbody><tr><td>Clan</td><td>clan</td><td>The clan this room belongs to</td></tr><tr><td>CSteamID</td><td>id</td><td>The id of the room</td></tr><tr><td>EChatRoomEnterResponse</td><td>enterResponce</td><td>The responce from Steam when the user attempted to enter the room if any</td></tr><tr><td>UserData[]</td><td>Members</td><td>The list of chat members, note client interface cannot iterate the full list of large clans</td></tr><tr><td>bool</td><td>IsOpenInSteam</td><td>Check if the chat is open in Steam UI</td></tr></tbody></table>

## Methods

### Send Message

```csharp
public bool SendMessage(string message);
```

Attempts to send a message to the chat.

### Open Chat Window

```csharp
public bool OpenChatWindowInSteam();
```

Opens the clan chat in the Steam UI ... this is generally recomended especially for large clans as opposed to creating an in game clan chat.

### Leave

```csharp
public void Leave();
```

Leaves the clan chat if the user is in it


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://kb.heathen.group/old-kb/old-toolkit-for-steamworks/unity/objects/classes/chat-room.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
