TLDR
The Discord API allows developers to build bots that automate tasks, manage servers, and interact with users. You can send messages, create channels, manage roles, and integrate Discord functionality into external applications. This enables custom moderation tools, game integrations, and community engagement features.
Capabilities
Bot DevelopmentCreate and manage automated bots that interact with Discord servers and users. Supports: custom commands, automated responses, moderation tools.
User InteractionsEnable applications to interact with users through various UI elements. Supports: application commands (slash commands), message components (buttons, select menus), modal components.
Real Time Events (gateway)Receive real-time updates and events from Discord via a WebSocket connection. Supports: Gateway events, Webhook events.
MonetizationIntegrate monetization features into Discord applications. Supports: app subscriptions, one-time purchases, in-app purchases for activities, SKU management.
Social Features (activities & Rich Presence)Enhance user experience with social integrations and rich presence. Supports: custom activities, rich presence status, Embedded App SDK, Discord Social SDK.
Server & Channel ManagementProgrammatically manage Discord guilds (servers), channels, and related resources. Supports: guild management, channel creation/modification, emoji management, audit logs, auto-moderation.
Messaging & MediaSend and manage messages, attachments, and media within Discord. Supports: message sending, editing, and deletion, image formatting, file uploads, signed attachment CDN URLs.
Authentication & Authorization (oauth2)Securely authenticate users and authorize applications to access Discord resources on their behalf. Supports: OAuth2 bearer tokens, bot tokens, permission management.
User & Role ManagementManage user accounts, roles, and permissions within Discord. Supports: user information retrieval, role connections, guild member management.
Voice & Lobby ManagementIntegrate with Discord's voice channels and lobby system. Supports: voice connections, lobby management, soundboard features.