> ## 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.

# Get current bot

> Retrieve the user represented by the connected Discord bot token.

`discord.getCurrentBot` retrieve the user represented by the connected Discord bot token.

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

export default automation("Get current bot", () => {
  onHttpRequest({ scope: "automation" })
  discord.getCurrentBot({})
})
```

## Inputs

No resource inputs. Optional second argument `{ account }` selects a Discord binding. Optional second argument `{ account }` selects the Discord binding.

## Output

Returns a `DiscordUser` for the connected bot.

## Discord behavior

Requires only a valid bot token.
