Skip to main content

Overview

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

Command syntax

/whoami
No parameters are required.

Response messages

Linked account
When your AniList account has a username:
Your linked AniList account is **AniUser**.
Profile: <https://anilist.co/user/AniUser/>
When the username is not yet populated (older linked accounts):
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.
Not linked yet
You have not linked an AniList account yet. Run `/register` first.
/register starts the OAuth flow that stores your AniList account.
Lookup error
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.

Example usage

/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.
If /whoami returns the default message, run /register again and complete the OAuth flow.