> For the complete documentation index, see [llms.txt](https://ilinked1337.gitbook.io/anarchy/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ilinked1337.gitbook.io/anarchy/documentation/guilds/members/guildmember.md).

# GuildMember

Namespace: Discord

### Inherits from

{% content-ref url="/pages/-MABuER99VSwz0ncHLWo" %}
[PartialGuildMember](/anarchy/documentation/guilds/members/partialguildmember.md)
{% endcontent-ref %}

## Properties

| Name          | Description                                                   | Type                  |
| ------------- | ------------------------------------------------------------- | --------------------- |
| Nickname      | The member's current nickname                                 | string                |
| Roles         | The member's roles                                            | IReadOnlyList\<ulong> |
| JoinedAt      | Timestamp indicating when the user joined the guild           | DateTime              |
| BoostingSince | Timestamp indicating when the user started boosting the guild | DateTime?             |

## Methods

### Update

Updates the object's information.

### Modify

Modifies the member.

#### Parameters

| Name       | Description                  | Type                  |
| ---------- | ---------------------------- | --------------------- |
| properties | The changes you want to make | GuildMemberProperties |

### AddRole

Adds a role to the member.

#### Parameters

| Name   | Description                              | Type  |
| ------ | ---------------------------------------- | ----- |
| roleId | The role you want assigned to the member | ulong |

### RemoveRole

Removes a role from the member.

#### Parameters

| Name   | Description                               | Type  |
| ------ | ----------------------------------------- | ----- |
| roleId | The role you want removed from the member | ulong |

### GetPermissions

Gets a member's permissions in the server.

#### Returns

{% content-ref url="/pages/-MAC4fMCo06a9cMhnqJF" %}
[DiscordPermission](/anarchy/documentation/guilds/discordpermission.md)
{% endcontent-ref %}

### Kick

Kicks the member from the guild.

### Ban

Bans the member from the guild.

#### Parameters

| Name              | Description                                      | Type    |
| ----------------- | ------------------------------------------------ | ------- |
| reason            | The reason you're banning the member             | string? |
| deleteMessageDays | Amount of days to delete messages from the user. | uint?   |

### Unban

Unbans the member from the guild.

### AsMessagable

Converts the member to a string that can be used within messages to ping the user.

#### Returns

string


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://ilinked1337.gitbook.io/anarchy/documentation/guilds/members/guildmember.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.
