# Clan Chat Member Counter

{% hint style="success" %}

#### Like what your seeing?

Support us as a [GitHub Sponsor](https://kb.heathen.group/old-kb/where-to-buy/become-a-sponsor) 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](https://kb.heathen.group/old-kb/where-to-buy/become-a-sponsor) ... become a sponsor today!
{% endhint %}

## Introduction

Maintains a display of the number of users in a clan chat.

```csharp
namespace HeathenEngineering.SteamworksIntegration.UI
```

```csharp
public class ClanChatMemberCounter : MonoBehaviour
```

## Fields and Attributes

### Clan Id

Can only be set in the Unity Editor

The ID of the clan to monitor

```csharp
[SerializeField]
private ulong clanId;
```

### Prefix

Can only be set in the Unity Editor

The prefix to assign to the text label before the number of users

```csharp
[SerializeField]
internal string prefix;
```

### Suffix

Can only be set in the Unity Editor

The suffix to assign to the text label after the number of users

```csharp
[SerializeField]
internal string suffix;
```

### Clan

Exposes the [ClanData ](https://kb.heathen.group/old-kb/old-toolkit-for-steamworks/unity/objects/classes/clan-data)that this object is linked to and can be assigned to update which clan is monitored

```csharp
public ClanData Clan { get; set; }
```

## Methods

### Apply

Apply the clan, this is done for you when you assign the Clan field

```csharp
public void Apply(ClanData clan)
```

### Refresh

Refresh the value, this updates the text label, this is in general called for you

```csharp
public void Refresh()
```


---

# 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/ui-components/clan-chat-member-counter.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.
