Field | Type | Required | Description | Example |
---|---|---|---|---|
name |
str | ✔️ | The name of the ratelimit. | tokens |
cost |
Optional[int] | ➖ | Optionally override how expensive this operation is and how many tokens are deducted from the current limit. | |
limit |
Optional[int] | ➖ | Optionally override the limit. | |
duration |
Optional[int] | ➖ | Optionally override the ratelimit window duration. |