---
description: extends User
---

# ClientUser

## Methods

#### \<ClientUser>.setPresence

| Param          | Required | Default                           | Type    |
| -------------- | -------- | --------------------------------- | ------- |
| options        | true     | {}                                | Object  |
| options.status | false    | 'online'                          | String  |
| options.afk    | false    | false                             | Boolean |
| options.since  | false    | null                              | Number  |
| options.game   | false    | { game: { name: null, type: 0 } } | Object  |
| game.name      | false    | null                              | String  |
| game.type      | false    | 0                                 | Number  |

#### \<ClientUser>.setUsername(name)

{% hint style="warning" %}
Name cannot contain the following characters: @, #, "\`\`\`" and names cannot be: everyone, here, discordtag
{% endhint %}

| Param | Required | Default | Type   |
| ----- | -------- | ------- | ------ |
| name  | true     | none    | String |

#### \<ClientUser>.fetchGuild(guild)

| Param | Required | Default | Type                |
| ----- | -------- | ------- | ------------------- |
| guild | true     | none    | String \| Snowflake |
