# Member Update

> Triggers when a member is updated.

- ID: `member_update`
- Type: Event trigger
- Category: [Members](https://inventor.bot/docs/reference/triggers/members.md)

> This trigger will not work if the bot does not have the GUILD_MEMBERS intent enabled.

**Outputs**

| Name | Description | Value |
| --- | --- | --- |
| `user_id` | The ID of the member that was updated | e.g. `"123456789012345678"` |
| `server_id` | The ID of the server where the member was updated | e.g. `"123456789012345678"` |
| `nickname` | The member's nickname in the server | e.g. `"CoolUser"` |
| `username` | The member's username | e.g. `"exampleuser"` |
| `global_name` | The member's global display name | e.g. `"Display Name"` |
| `user_mention` | A mention for the member | e.g. `"<@123456789012345678>"` |
| `accent_color` | The member's accent color | e.g. `"#1ABC9C"` |
| `avatar_url` | URL to the member's avatar | e.g. `"https://cdn.discordapp.com/avatars/..."` |
| `deaf` | Whether the member is server deafened | e.g. `"false"` |
| `mute` | Whether the member is server muted | e.g. `"false"` |
| `pending` | Whether the member is pending verification | e.g. `"false"` |
| `roles` | Comma-separated role IDs for the member | e.g. `"123456789012345678,234567890123456789"` |
| `timed_out` | Whether the member is timed out | e.g. `"false"` |
| `timed_out_until_unix` | Unix timestamp until the timeout ends | e.g. `"1700000000"` |
| `timed_out_until_relative` | Relative time until the timeout ends | e.g. `"in 5 minutes"` |

**Example**

```go
var trigger = member_update()

func main() {
	send_text_message(Args{channel_id: "CHANNEL_ID", message_content: "User ID: " + trigger.user_id})
}
```