Rapptz
87bc79e6e3
Change certain sequences to use a special proxy type instead of list
This is to speed up cases where someone is just querying the length
of the underlying sequence. If anything else is done to the sequence
then it is copied from the original iterator.
This change should be mostly transparent.
3 years ago
Rapptz
98c4f2ae8b
Fix utils.copy_doc being partially unknown
3 years ago
Rapptz
a01dad283f
Add extraneous debug logging to sub ratelimits being detected
3 years ago
Rapptz
76402b00f9
Allow configuring the maximum ratelimit timeout before erroring
This is useful for cases where a rate limit is known to be
extraordinarily high, but you still want to handle the error.
This is common with routes such as emoji creation.
3 years ago
Rapptz
85ea418776
Special case message deletion sub rate limits
3 years ago
Rapptz
c17eb31328
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
4914e74029
Change variable name for binding error handler to be more generic
3 years ago
Stocker
0546343bcb
[commands] Add cog-level app command error special method
3 years ago
Rapptz
2067819b75
Fix some minor typing errors
3 years ago
ow0x
52f3a3496b
Update docs for abc.Messageable.pins()
3 years ago
z03h
faad035fa2
[commands] change Range to raise BadArgument for invalid values
3 years ago
github-actions[bot]
c7e589033d
[Crowdin] Updated translation files
3 years ago
Harshal Laheri
20d3871290
Add return type hint for some functions
3 years ago
Lilly Rose Berner
e0341c9ef2
Add forum post rename system message
3 years ago
GoogleGenius
eea70b53cd
Fix small typos in docstrings
3 years ago
z03h
1aaa32d4bc
Add on_raw_app_command_permissions_update event
3 years ago
Lucas Hardt
55b9a848ff
Implement AppCommand mentions
3 years ago
Michael H
a8a6bf4f6c
Add advanced startup example
shows setup_hook and async context manager use with examples
approximating real world use cases
3 years ago
James Hilton-Balfe
3433e13848
Prioritise async iteration before sync iteration in utils.find/get
3 years ago
z03h
04aeff660b
Add automod types to audit log
3 years ago
I. Ahmad
b88bdaf4c0
Add Intents.auto_moderation
3 years ago
Rapptz
b917904c1b
Prevent launching shards when bot is closed
Fix #8210
3 years ago
zephyrkul
9fe19dcc69
[commands] Add Context.permissions and Context.bot_permissions
3 years ago
JohannesIBK
65a270d35a
Update bot_has_permissions to use Interaction.app_permissions
3 years ago
github-actions[bot]
37c7c8fb34
[Crowdin] Updated translation files
3 years ago
Rapptz
5de9287902
Change abc.PrivateChannel to be a proper subclass
This fixes isinstance(thread, discord.abc.PrivateChannel) from
returning True
3 years ago
Rapptz
fd9c244f48
Validate Range to disallow min > max
3 years ago
Emily
c61e407b50
Fix typo in app_commands.AppCommandGroup
3 years ago
Rapptz
482e3ead9b
Improve documentation on AutoModAction.message_id
3 years ago
Rapptz
53a111872e
Fix ArrayFlags._from_value not having an initial value
3 years ago
CoolSpring8
b806ce332e
Fix passing proxy to interactions and webhooks
3 years ago
Rapptz
b5392ea0f1
[commands] Add support for Range[str, ...]
3 years ago
Rapptz
bac66a9dab
Add support for Range[str, ...] for app commands
3 years ago
Rapptz
b3a24846bd
Add Interaction.app_permissions
Fix #8193
3 years ago
z03h
3b5cd3b92c
Fix audit log for multiple app command permission updates
3 years ago
Simon Beal
66dbed29b7
Add support for harmful_link automod triggers
Co-authored-by: Blue <[email protected] >
3 years ago
Omkaar
77a7b17265
Fix tiny errors
3 years ago
Bryan Forbes
b7dd97dca9
[commands] Change Command.extras to match typing in app commands
3 years ago
ChrisJL
824bbce95b
Add documetation for auto_moderation_action MessageType enum
3 years ago
Bryan Forbes
0eb3d26343
Add generic arguments for extras typing
3 years ago
github-actions[bot]
38ab4b0810
[Crowdin] Updated translation files
3 years ago
apple502j
b95db674c0
Fix some typos
3 years ago
Emily
55849d996e
Update documentation for discord.Message
Co-authored-by: Danny <[email protected] >
3 years ago
Alex Nørgaard
5426d19dc7
Implement AutoMod
3 years ago
Rapptz
7ad00750c6
Add note about different client subclasses
3 years ago
Rapptz
1335937288
Add Thread.starter_message property
3 years ago
mniip
1be36c9c3e
Change View, Modal, and AudioPlayer to use logger instead of stderr
3 years ago
I. Ahmad
9fc4769b18
Add extras attribute to app commands command types
3 years ago
GoogleGenius
868476c999
Use the latest GitHub Action versions
3 years ago
Rapptz
b8ddb17b14
Fix fallback_to_global not working with context menus
Fix #8167
3 years ago