# LobbyMemberSlot

{% 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 %}

## &#x20;Introduction

An abstract class used by the [Party Lobby Control](/old-kb/old-toolkit-for-steamworks/unity/objects/ui-components/party-lobby-control.md) to represent a user slot in the UI.

```csharp
using HeathenEngieering.SteamworksIntegration.UI;
```

```csharp
public abstract class FriendInviteButton;
```

## Events

### InviteUserRequest

A UnityEvent to be invoked when the player has indicated that they would like to invite a user to join the indicated lobby. This allows the slot to act like a button that when pressed will start the process of selecting and inviting a user to join the lobby.

```csharp
public UnityEvent InviteUserRequest;
```

### RemoveUserRequest

A UnityEvent to be invoked when the player has indicated that they would like to ask the user that is represented by this slot to leave the lobby.

```csharp
public UnityEvent RemoveUserRequest;
```

## Fields and Attributes

### Interactable

Controls rather the control is interactable or not

```csharp
public abstract bool Interactable { get; set; }
```

## Methods

### SetUser

Set the user this slot represents if any

```csharp
public abstract void SetUser(LobbyMemberData user)
```

### GetUser

Get the user that is set to this slot if any

```csharp
public abstract LobbyMemberData GetUser()
```

### ClearUser

Clear the user from this slot

```csharp
public abstract void ClearUser()
```


---

# 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/programming-tools/lobbymemberslot.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.
