Commit 08aece1
feat: publish RatelimitEvent to NATS on Discord HTTP rate limits
The ratelimit handler previously only logged a warning. Now it also
publishes a RatelimitEvent (path, timeout_ms, global) to the
discord.<prefix>.bot.ratelimit subject so agents can observe and
react to Discord API rate limits.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 4d16c2d commit 08aece1
2 files changed
Lines changed: 18 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2203 | 2203 | | |
2204 | 2204 | | |
2205 | 2205 | | |
| 2206 | + | |
| 2207 | + | |
| 2208 | + | |
| 2209 | + | |
| 2210 | + | |
| 2211 | + | |
| 2212 | + | |
| 2213 | + | |
| 2214 | + | |
2206 | 2215 | | |
2207 | 2216 | | |
2208 | 2217 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1596 | 1596 | | |
1597 | 1597 | | |
1598 | 1598 | | |
1599 | | - | |
| 1599 | + | |
| 1600 | + | |
1600 | 1601 | | |
1601 | 1602 | | |
1602 | | - | |
| 1603 | + | |
1603 | 1604 | | |
1604 | 1605 | | |
1605 | 1606 | | |
| 1607 | + | |
| 1608 | + | |
| 1609 | + | |
| 1610 | + | |
| 1611 | + | |
| 1612 | + | |
1606 | 1613 | | |
1607 | 1614 | | |
1608 | 1615 | | |
| |||
0 commit comments