> ## Documentation Index
> Fetch the complete documentation index at: https://docs.automate.ax/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Automate.ax automations are TypeScript programs.
> Use Bun for installation and command examples.
> Use Automate.ax for the product name and automate.ax for the package, CLI, and domain.
> Treat documented public APIs as current; do not invent transitional or deprecated names.

# Update member

> Update a Discord member's nickname, voice state, or timeout.

`discord.updateMember` update a Discord member's nickname, voice state, or timeout.

```ts automations/discord-update-member.automation.ts theme={null}
import { automation, onHttpRequest } from "automate.ax"
import { discord } from "automate.ax/discord"

export default automation("Update member", () => {
  onHttpRequest({ scope: "automation" })
  discord.updateMember({
    guildId: "123456789012345678",
    userId: "234567890123456789",
    nickname: "Ada",
  })
})
```

## Inputs

Required server and user IDs. Optional `nickname`, `communicationDisabledUntil`, `mute`, `deaf`, `channelId`, and audit-log `reason`. A timeout must be an offset ISO timestamp no more than 28 days in the future. Use `null` to clear nickname, timeout, or voice channel. Optional second argument `{ account }` selects the Discord binding.

## Output

Returns the updated `DiscordMember`, including `mute` and `deaf` voice-state fields when Discord provides them.

## Discord behavior

Discord permission and role hierarchy checks depend on the changed fields. Timeout timestamps must be within Discord's supported window.
