Rapptz
70432f770b
Rewrite rate limit handling to use X-Ratelimit-Bucket and a semaphore
This should increase throughput of the number of requests that can be
made at once, while simultaneously following the new standard practice
of using the rate limit bucket header.
This is an accumulation of a lot of months of work between a few people
and it has been tested extensively. From the testing it seems to work
fine, but I'm not sure if it's the best way to do it.
This changeset does not currently take into consideration sub
rate limits yet, but the foundation is there via Route.metadata. In the
future, this metadata will be filled in with the known sub rate limit
implementation to allow them to have separate keys in the rate limit
mapping.
Co-authored-by: Josh <[email protected] >
3 years ago
Rapptz
2fe41c825b
Fix some minor typing errors
3 years ago
ow0x
8f7d13d7f0
Update docs for abc.Messageable.pins()
3 years ago
z03h
b4d2395a5e
[commands] change Range to raise BadArgument for invalid values
3 years ago
Lilly Rose Berner
0a2bb5e85f
Add forum post rename system message
3 years ago
GoogleGenius
9f82fa1037
Fix small typos in docstrings
3 years ago
James Hilton-Balfe
0cd06789e4
Prioritise async iteration before sync iteration in utils.find/get
3 years ago
z03h
55ae37f65e
Add automod types to audit log
3 years ago
Rapptz
7c71feac23
Change abc.PrivateChannel to be a proper subclass
This fixes isinstance(thread, discord.abc.PrivateChannel) from
returning True
3 years ago
Rapptz
a4f0b9f5ef
Improve documentation on AutoModAction.message_id
3 years ago
Rapptz
5d41d4ca50
Fix ArrayFlags._from_value not having an initial value
3 years ago
CoolSpring8
6f30c0612b
Fix passing proxy to interactions and webhooks
3 years ago
Rapptz
360836ce10
[commands] Add support for Range[str, ...]
3 years ago
Simon Beal
61d2bc78fe
Add support for harmful_link automod triggers
Co-authored-by: Blue <[email protected] >
3 years ago
Bryan Forbes
547fcb93d1
[commands] Change Command.extras to match typing in app commands
3 years ago
Alex Nørgaard
d61ccf7931
Implement AutoMod
3 years ago
Rapptz
aa956914cd
Add Thread.starter_message property
3 years ago
mniip
08c9da6e89
Change View, Modal, and AudioPlayer to use logger instead of stderr
3 years ago
will
d813cbecbe
Fix typo and capitalizations in docs
3 years ago
Rapptz
5ddf32dd09
Fix potential infinite loop in Reaction.users
3 years ago
Nadir Chowdhury
c9d6d3d1df
Add extra details to rate limit logs
- Include the rate limit bucket for webhooks
- Enable `stack_info` for the 429 warning.
3 years ago
Rapptz
082c39ca8b
[tasks] Only update the time interval if the body has run once
Fix #8151
3 years ago
Sarthak Upadhyay
5d48294b77
Update sticker limit in _PREMIUM_GUILD_LIMITS
3 years ago
Rapptz
14240540bb
Change default for purge oldest_first to match history
3 years ago
Rapptz
d053ecf8b9
Refactor utils.oauth_url slightly
3 years ago
Miku Chan
aedbedaff8
Add state parameter to utils.oauth_url
Co-authored-by: Danny <[email protected] >
3 years ago
Rapptz
495854bcb3
Change stderr prints to use the logging module instead
3 years ago
Rapptz
5c61d2d738
Add default logging configuration when using Client.run
While it is possible to do this type of your set up yourself, it's
better for beginners to have logging automatically set up for them.
This has come up often in the help channel over the years. This also
provides an escape hatch to disable it.
3 years ago
James Hilton-Balfe
5858c44f63
[docs] Add async with documentation for Client
Co-authored-by: Rapptz <[email protected] >
3 years ago
Daniel Diaz
388941924f
[commands] Document argument attribute in BadInviteArgument
3 years ago
Josh
52a5f10307
Fix type annotations to adhere to latest pyright release
3 years ago
Rapptz
d13b47759b
Raise an exception when wait_until_ready is called without a loop
3 years ago
Soheab
52b6497fc3
Use static_format over format if present in Asset.replace
3 years ago
Kile
e73af5d117
Fix typings of deaf and mute in PartialMember
3 years ago
Enes Kurbetoğlu
77cf753089
Add on_raw_thread_member_remove event
3 years ago
Alex Nørgaard
4ce3343747
Add Guild.create_forum and CategoryChannel.create_forum
3 years ago
Rapptz
502cb800d5
Fix state modification endpoints on ScheduledEvent not working
Closes #8114
3 years ago
Rapptz
5c67cb5e64
Fix audit log bulk message delete not exposing count
3 years ago
Andy
db4fd9e883
Fix documentation errors in discord.Invite and on_integration_update
3 years ago
nickofolas
eedb7a422f
Use __getitem__ to access channel_id in MessageReference payloads
3 years ago
Rapptz
72ca280bf2
Add support for new thread_name parameter in Webhook.send
3 years ago
Rapptz
2e49ece810
Add webhook creation methods to ForumChannel
3 years ago
I. Ahmad
0bdc4d7281
Use json_or_text helper for parsing webhook responses
3 years ago
Rapptz
aaaba21f09
Fix versionadded docstrings in voice connect methods
3 years ago
Rapptz
41208f7391
Add a new extlink for discord documentation
3 years ago
Sebastian Law
91ca12061c
Use positional args for internal thread methods
3 years ago
zephyrkul
d241e61e63
Add remaining bitwise operators to Flags
3 years ago
Rapptz
cc7bdc2b98
Fix bug in permission resolution when dealing with timed out members
This would lead to timed out members having the read_messages
permission set to True instead of False
3 years ago
Nanashi
e788fe8726
Retry on 524 status code
3 years ago
Rapptz
36b46cfdf3
Change aiohttp object construction to no longer take loop objects
3 years ago