1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2025-07-23 13:20:51 +00:00
arikawa/state
diamondburned daf47b3491
api: Add upload size consts and DetermineUploadSize
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.
2025-06-20 01:25:20 -07:00
..
store go fmt + gci 2023-09-19 11:37:24 -07:00
event_dispatcher.go state: Fix Ready not resetting fewMessages 2022-06-23 00:09:20 -07:00
events.go *: Migrated Go Modules to v3 2021-06-01 19:59:01 -07:00
state.go api: Add upload size consts and DetermineUploadSize 2025-06-20 01:25:20 -07:00
state_events.go state: Cache members on Message{Create,Update} 2025-06-20 00:59:45 -07:00