mirror of
https://github.com/diamondburned/arikawa.git
synced 2025-07-23 13:20:51 +00:00
This commit adds a new method `DetermineUploadSize` into both api.Client and state.State, which implement the core logic to determine the right upload size limit for the current user. Bots can ignore this method. This commit also adds constants for the upload size limits, with different constants for different scenarios (nitro, server boosts). Bots can directly use the `UploadSizeLimit` constant, which is the default lowest limit. |
||
---|---|---|
.. | ||
store | ||
event_dispatcher.go | ||
events.go | ||
state.go | ||
state_events.go |