1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2024-12-02 20:02:53 +00:00
arikawa/api
Maximilian von Lindern 0a8b24339b
API: Added timeout if deadline is after rate limit (#173)
* Rate: don't sleep if sleep exceeds context deadline

* Httputil: add Client.Timeout

* Bot: set default API timeout to 5 minutes

* Rate: reduce calls to time.Now in Acquire

* API: Optimize to use deadline instead of recalculating

Co-authored-by: diamondburned <datutbrus@gmail.com>
2020-11-25 12:08:42 -08:00
..
rate API: Added timeout if deadline is after rate limit (#173) 2020-11-25 12:08:42 -08:00
api.go Gateway: Added reconnect timeout; fixed UA (#154) 2020-10-30 13:41:04 -07:00
api_test.go API: Added WithContext API, closes #15 2020-05-03 14:02:03 -07:00
channel.go *: Migrated Go Modules to v2 2020-10-28 15:39:59 -07:00
emoji.go API: replace use of whitelist with more inclusive synonyms 2020-11-03 10:14:53 -08:00
guild.go API: rename Client.GuildVanityURL to Client.GuildVanityInvite 2020-11-21 10:12:12 -08:00
image.go replace usage of discordapp.com with discord.com in docs 2020-11-03 10:14:53 -08:00
integration_test.go *: Migrated Go Modules to v2 2020-10-28 15:39:59 -07:00
invite.go *: Migrated Go Modules to v2 2020-10-28 15:39:59 -07:00
login.go *: Migrated Go Modules to v2 2020-10-28 15:39:59 -07:00
math.go API: abstract away boundary limits for DeleteMessages (#159) 2020-11-10 15:34:05 -08:00
math_test.go API: abstract away boundary limits for DeleteMessages (#159) 2020-11-10 15:34:05 -08:00
member.go API: fix wrong constants getting used for fetch limits 2020-11-21 08:36:14 -08:00
message.go API: stay within the boundaries of messageIDs (#160) 2020-11-11 11:07:30 -08:00
message_reaction.go API: fix wrong constants getting used for fetch limits 2020-11-21 08:36:14 -08:00
role.go *: Migrated Go Modules to v2 2020-10-28 15:39:59 -07:00
send.go State: Fixed erroneous context setting and races in Ready 2020-11-14 15:30:18 -08:00
send_test.go *: Migrated Go Modules to v2 2020-10-28 15:39:59 -07:00
user.go *: Migrated Go Modules to v2 2020-10-28 15:39:59 -07:00
webhook.go *: Migrated Go Modules to v2 2020-10-28 15:39:59 -07:00