Skip to main content

Documentation Index

Fetch the complete documentation index at: https://anniemei.app/llms.txt

Use this file to discover all available pages before exploring further.

Overview

The /character command fetches detailed character information from AniList, including names, biographical data, appearances, and descriptions.

Command syntax

/character search:<AniList ID or search term> spoilers:<allow|disallow>

Parameters

AniList ID (numeric) or search term (character name in any language)
spoilers
string
required
Whether to include spoiler aliases and spoiler description content
  • allow — includes spoiler aliases and reveals spoiler-tagged description text
  • disallow — hides spoiler aliases and strips spoiler-tagged description content

Usage examples

/character search:40 spoilers:disallow
Returns Lelouch Lamperouge using the exact AniList character ID.

Response data

The bot returns a rich embed with the following information:
Name
Primary name, native name, and alternative aliases
Description
Character biography converted from AniList HTML. Spoiler-tagged sections are stripped when spoilers:disallow is chosen.
Image
Character portrait thumbnail from AniList
Biographical data
  • Gender
  • Age
  • Birthday (year, month, day — partial dates display what is available)
  • Blood Type
  • Favourites: AniList community favourite count
Appears In
List of anime and manga the character appears in, with links to AniList pages
AniList URL
Direct link to the character’s AniList page

Search tips

AniList IDs are the most reliable way to search. Find the ID in the URL:https://anilist.co/character/40 → Use /character search:40
Choose spoilers:allow when you want to see hidden aliases and description spoilers (for example, post-plot-twist identities). Choose spoilers:disallow for a spoiler-free result.

Source code reference

Implementation: src/commands/character/command.rs:27 The register() function defines the command structure:
pub fn register() -> CreateCommand {
    CreateCommand::new("character")
        .description("Fetches the details for an AniList character")
        .add_option(
            CreateCommandOption::new(
                CommandOptionType::String,
                "search",
                "AniList character ID or search term",
            )
            .required(true),
        )
        .add_option(
            CreateCommandOption::new(
                CommandOptionType::String,
                "spoilers",
                "Whether to include spoiler aliases and spoiler description content",
            )
            .add_string_choice("Allow", "allow")
            .add_string_choice("Disallow", "disallow")
            .required(true),
        )
}