Advanced Features
Explore Plexcord's most powerful plugin capabilities. Patches, commands, Flux events, context menus, message decorations, and UI extensions.
Advanced Features
This section covers Plexcord's most powerful plugin capabilities. These features let you modify Discord's behavior deeply: patching its code, adding commands, and extending its UI.
What You'll Learn
Patches System
Modify Discord's JavaScript source code at runtime using regex-based patching. The most powerful and most dangerous feature.
Commands System
Create custom Discord slash commands with options, autocomplete, and message responses.
Flux Events
Subscribe to Discord's internal event bus. React to messages, presence updates, channel switches, and hundreds of other events.
Context Menus
Add items to right-click menus on users, messages, channels, and guilds.
Message Decorations
Add visual overlays and decorators to Discord messages.
Buttons & UI Extensions
Add buttons and UI elements to the chat bar, message popover, and header bar.
Prerequisites
Before using advanced features, you should be comfortable with:
- Plugin structure and lifecycle
- Settings system
- Core Concepts (especially debugging)
Feature Overview
| Feature | Complexity | Use Case |
|---|---|---|
| Patches | ⚠️ High | Modify Discord's behavior at the code level |
| Commands | 🟡 Medium | Add /mycommand to Discord |
| Flux Events | 🟢 Low | React to things happening in Discord |
| Context Menus | 🟡 Medium | Add right-click menu items |
| Message Decorations | 🟡 Medium | Overlay elements on messages |
| Buttons & UI | 🟡 Medium | Add toolbar buttons |
Start with Flux Events if you're new to advanced features; they're the safest and most straightforward.