Welcome to the Tux API Reference! This section provides comprehensive auto-generated documentation for the entire codebase.

Quick Navigation

📖 Documentation Types

API Documentation

The API reference is automatically generated from the codebase using mkdocstrings. It includes:

  • Type hints for all parameters and return values
  • Docstrings with detailed explanations
  • Source code links to view implementations
  • Cross-references between related components

Use the navigation menu to browse by module:

  • Core - Core bot functionality (app, bot, cogs, permissions)
  • Database - Database models, controllers, and services
  • Services - Service layer (wrappers, handlers, Sentry)
  • Modules - Command modules (moderation, utility, features)
  • UI - User interface components (embeds, views, modals)
  • Shared - Shared utilities (config, exceptions, constants)

Or use the search function to find specific classes, functions, or modules.

CLI Reference

Command-line tools for development and administration:

CLI Reference →

Includes documentation for:

  • uv run tux - Bot management
  • uv run db - Database operations
  • uv run dev - Development tools
  • uv run tests - Test runner
  • uv run docker - Docker management
  • uv run docs - Documentation tools
  • uv run config - Config generation

Configuration Reference

Complete configuration schema with all available options:

Configuration Reference →

Auto-generated from the pydantic models, includes:

  • Environment variable definitions
  • Config file options (TOML/YAML/JSON)
  • Default values
  • Type information
  • Descriptions

For Developers

Using the API Reference

When developing:

  1. Browse by Module - Explore related functionality
  2. Search - Find specific functions or classes
  3. Read Docstrings - Understand parameters and behavior
  4. Check Source - Click "Source" links to view implementation
  5. Follow Cross-References - Navigate to related code

Documentation Standards

All code should include:

  • Type hints on all functions and methods
  • Numpy-style docstrings with descriptions
  • Parameter documentation with types and descriptions
  • Return value documentation
  • Exception documentation (Raises section)
  • Usage examples (Examples section, where applicable)

Documentation Guide →

External References

Python Standard Library

Discord.py

Database

Other Dependencies

Need Help?

Finding What You Need

  1. Use Search - Press / to search the docs
  2. Check Index - Browse the navigation sidebar
  3. Follow Links - Cross-references link related code
  4. Read Examples - Look for Examples sections in docstrings

Getting Support


Note: This reference is auto-generated from the source code. For conceptual documentation and guides, see the Developer Guide.