Debug logging
You can enable framework logging with:Sharding
The client supports sharding configuration:What to watch while debugging
- invalid modal payloads
- component custom ID mismatches
- missing intents
- REST failures that return
{ ok: false, ... } - event handlers that assume richer runtime objects than the framework actually stores
Practical advice
When debugging interaction issues:- inspect the exact component or modal payload sent to Discord
- inspect
result.rawfor REST failures - prefer typed builders over hand-written raw component objects whenever possible