Skip to main content

Overview

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

Command syntax

No parameters are required.

Response messages

When your AniList account has a username:
When the username is not yet populated (older linked accounts):
/whoami prefers your AniList username when available and falls back to your numeric AniList ID.
/register starts the OAuth flow that stores your AniList account.
This message appears if the bot cannot query user data at that moment.

Example usage

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.