What problem does it solve?
This Skill provides practical guidance for implementing and handling Discord interactions (buttons, selects, modals) within the Open Guard bot, helping developers craft responsive, non-blocking UI flows.
Core Features & Use Cases
- Button interactions: implement and respond to button clicks without delaying commands.
- Select menus and modals: handle dropdowns and form submissions with proper acknowledgment and editing strategies.
- Event-driven integration: wire interaction handlers into the bot's event system and transport data via custom_id.
- Best practices: separate command execution from interaction handling, and use acknowledge-then-edit patterns.
- Use case: add a conversational setup flow that collects user input via modals and updates messages in place.
Quick Start
Review the Serenity Interactions skill and implement basic button handling following the patterns:
- Wire an event handler that listens for Component interactions and delegates to a dedicated function.
- Use create_response(Acknowledge) to acknowledge interactions, then edit the original message with results.
- Transport data using custom_id parsing to pass context between commands and handlers.