1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2025-07-23 13:20:51 +00:00
arikawa/api
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
..
cmdroute cmdroute: Further deprecate Handle{Command,Autocompletion} 2024-07-06 12:42:00 +07:00
rate go fmt + gci 2023-09-19 11:37:24 -07:00
webhook go fmt + gci 2023-09-19 11:37:24 -07:00
api.go api: Add upload size consts and DetermineUploadSize 2025-06-20 01:25:20 -07:00
api_test.go API: Added WithContext API, closes #15 2020-05-03 14:02:03 -07:00
application.go api: Add ID param to CreateCommandData (#417) 2024-01-06 19:17:03 -08:00
automoderation.go api: Add initial implementation for automoderator API (#444) 2024-08-06 14:43:41 +07:00
bot.go gateway: Refactor for a better concurrent API 2021-12-14 13:49:34 -08:00
channel.go api: Add GET Thread Member method 2024-02-28 17:46:21 -08:00
emoji.go api: Add support for the X-Audit-Log-Reason header (#259) 2021-08-15 18:33:33 +02:00
guild.go api: Support with_counts for Guilds method 2025-03-25 21:49:43 -07:00
image.go go fmt + gci 2023-09-19 11:37:24 -07:00
integration_test.go api: More multiple embed support for send functions (#266) 2021-08-16 02:26:25 -07:00
interaction.go go fmt + gci 2023-09-19 11:37:24 -07:00
invite.go api: Add support for the X-Audit-Log-Reason header (#259) 2021-08-15 18:33:33 +02:00
login.go feat(api): add fields to LoginResponse 2025-05-15 10:38:23 -07:00
member.go api: Support with_counts for Guilds method 2025-03-25 21:49:43 -07:00
message.go go fmt + gci 2023-09-19 11:37:24 -07:00
message_reaction.go api: Add support for the X-Audit-Log-Reason header (#259) 2021-08-15 18:33:33 +02:00
role.go discord: Add Icon/Emoji & Tags to Role (#313) 2022-02-17 18:07:03 -08:00
scheduled_events.go discord: Support guild Scheduled Events (#319) 2022-04-02 22:36:45 -07:00
search.go api: allow searching DMs 2024-07-14 14:46:59 +07:00
send.go api: Add upload size consts and DetermineUploadSize 2025-06-20 01:25:20 -07:00
send_test.go api: Fix c07f574 broken tests 2023-06-07 18:03:26 -07:00
stage.go api: Add support for the X-Audit-Log-Reason header (#259) 2021-08-15 18:33:33 +02:00
user.go discord: Add per-guild avatars, ModifyMe -> ModifyCurrentUser (#278) 2021-09-28 11:46:36 -07:00
webhook.go *: Migrated Go Modules to v3 2021-06-01 19:59:01 -07:00