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

# /whoami

> Show the AniList account linked to your Discord profile

## Overview

The `/whoami` command shows which AniList account is currently linked to your Discord profile.

## Command syntax

```text theme={}
/whoami
```

No parameters are required.

## Response messages

<ResponseField name="Linked account">
  When your AniList account has a username:

  ```text theme={}
  Your linked AniList account is **AniUser**.
  Profile: <https://anilist.co/user/AniUser/>
  ```

  When the username is not yet populated (older linked accounts):

  ```text theme={}
  Your linked AniList account is **AniList account ID 4567**.
  Profile: <https://anilist.co/user/4567/>
  ```

  `/whoami` prefers your AniList username when available and falls back to your numeric AniList ID.
</ResponseField>

<ResponseField name="Not linked yet">
  ```text theme={}
  You have not linked an AniList account yet. Run `/register` first.
  ```

  `/register` starts the OAuth flow that stores your AniList account.
</ResponseField>

<ResponseField name="Lookup error">
  ```text theme={}
  I hit an internal error while looking up your AniList account. Please try again later.
  ```

  This message appears if the bot cannot query user data at that moment.
</ResponseField>

## Example usage

```text theme={}
/whoami
```

Use it to verify that `/register` completed and stored your account for guild-aware lookups.

## Source code reference

Implementation: `src/commands/whoami.rs:23`

`register()` defines the slash command, and `handle_whoami()` builds the response from `OAuthCredential`, preferring `anilist_username` and falling back to `anilist_id` for older credential rows.

<Tip>
  If `/whoami` returns the default message, run `/register` again and complete the OAuth flow.
</Tip>
