# alterself - [alterself: Build and Run Discord Selfbots in Python](https://docs.guilt.icu/introduction.md): alterself is a Python library for building Discord selfbots. Automate your account with commands, events, HTTP calls, and fingerprint spoofing. - [Quick Start: Run Your First alterself Discord Selfbot](https://docs.guilt.icu/quickstart.md): Install alterself, retrieve your Discord user token from browser Local Storage, and run a working selfbot with a ping command in minutes. - [Installing alterself and Setting Up Your Environment](https://docs.guilt.icu/installation.md): Install alterself via pip or from source, configure your Discord token securely, and set up logging for development and production. - [alterself Client: Gateway, HTTP, State, and Commands](https://docs.guilt.icu/concepts/client.md): The Client class is the heart of alterself. It owns the gateway connection, HTTP layer, state cache, event bus, and command registry. - [alterself Commands: Definitions, Arguments, and Checks](https://docs.guilt.icu/concepts/commands.md): Define prefix commands, parse arguments, use built-in and custom checks for access control, and organise handlers using the alterself command system. - [alterself Gateway Events: Registration and Reference](https://docs.guilt.icu/concepts/events.md): Listen to Discord gateway events with decorators or manual registration. alterself dispatches parsed model objects to your handlers automatically. - [alterself Cogs: Group Commands and Event Listeners](https://docs.guilt.icu/concepts/cogs.md): Use alterself Cogs to group related commands and listeners into reusable classes. Add and remove cogs at runtime to manage your bot's features. - [Setting Discord Rich Presence and Activities in alterself](https://docs.guilt.icu/guides/presence-activity.md): Set playing, listening, watching, streaming, and custom statuses on your Discord account using alterself's activity helpers and change_presence. - [Browser Fingerprint Spoofing in alterself Selfbots](https://docs.guilt.icu/guides/spoofing.md): Understand how alterself's SpoofEngine synthesises a consistent browser fingerprint, manages build numbers, and mimics real Chrome client behaviour. - [Handling Errors and Exceptions in alterself Selfbots](https://docs.guilt.icu/guides/error-handling.md): Learn how to catch and handle alterself exceptions including HTTPError, SessionClosed, CaptchaChallenge, and command errors in your selfbot. - [Practical alterself Selfbot Examples and Code Recipes](https://docs.guilt.icu/guides/examples.md): Copy-paste examples for common alterself patterns: ping bots, echo commands, auto-reactions, DM logging, guild joining, and admin cogs. - [Messages and Reactions HTTP Methods for the alterself API](https://docs.guilt.icu/api/http-messages.md): Send, edit, delete, fetch, pin, react to, and search messages using alterself's bot.http message methods. Full parameter reference included. - [Channel and Thread HTTP Methods for the alterself REST API](https://docs.guilt.icu/api/http-channels.md): Fetch, edit, delete channels and create threads using alterself's bot.http channel methods. Covers text channels, voice channels, and threads. - [Guild Management HTTP Methods for the alterself REST API](https://docs.guilt.icu/api/http-guilds.md): Manage guilds, members, roles, and moderation using alterself's bot.http guild methods. Covers fetching, editing, leaving, joining, bans, kicks, and roles. - [User and DM HTTP Methods for the alterself REST API Guide](https://docs.guilt.icu/api/http-users.md): Fetch user profiles, edit your own account, open DMs, manage relationships, and make raw API requests using alterself's bot.http user methods. - [alterself Data Models: User, Guild, Channel, Message](https://docs.guilt.icu/api/models.md): Reference for all alterself model objects returned by gateway events and HTTP methods, including User, Guild, Channel, Message, Member, and Flake. - [alterself Gateway Events: Complete Event Reference](https://docs.guilt.icu/api/events-reference.md): Complete reference of all 26 Discord gateway events dispatched by alterself, with handler argument types, trigger conditions, and code examples. - [alterself Exceptions: Error Classes and Error Codes](https://docs.guilt.icu/api/errors.md): Complete reference for alterself exceptions including HTTPError with Discord error codes, gateway SessionClosed codes, and command errors.