Commit a6712fb
committed
fix(discord): clamp shared limit subBlock to 1-50 for pinned messages
The limit subBlock is shared between discord_get_messages (max 100)
and discord_get_pinned_messages (max 50 per Discord's API), so a
value carried over from the messages operation could exceed the pins
endpoint's max and trigger a 400. Clamp at both the block dispatcher
and the tool's request builder.1 parent 74d6625 commit a6712fb
2 files changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
718 | 718 | | |
719 | 719 | | |
720 | 720 | | |
721 | | - | |
| 721 | + | |
722 | 722 | | |
723 | 723 | | |
724 | 724 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| |||
0 commit comments