a5410e6135
Add documentation for hybrid commands
2022-07-25 21:19:42 -04:00
3ee18e4c5d
Use a TypeVar for flatten_user to workaround Pyright bug
2022-07-25 21:18:52 -04:00
fb8d5c15d0
Add cog_app_command_error to python -m newcog
2022-07-24 20:30:04 -04:00
efdda635fb
Fix View.from_message not respecting ActionRow row order
2022-07-23 15:24:26 -04:00
9d9d96fce1
Fix crash with automod due to silent Discord breaking change
...
Fix #8264
2022-07-23 15:14:45 -04:00
b68568f375
[commands] Fix type annotations to use Union instead of |
2022-07-23 15:11:19 -04:00
311891912e
[commands] Change cooldowns to take context instead of message
2022-07-23 07:08:44 -04:00
406495b465
Use a sequence instead of a list for AllowedMentions
2022-07-23 01:26:59 -04:00
dc50736bfc
Add ApplicationFlags.app_commands_badge
2022-07-21 15:00:40 -04:00
d52bc5d225
Cache voice members on start up if MemberCacheFlags.voice is enabled
...
Fix #8209
2022-07-20 23:12:36 -04:00
0b1c5df3e0
Fix minimum and maximum being casted to str in Range[str, ...]
2022-07-20 23:12:00 -04:00
9c109ae59b
[commands] Unload cog when command registration fails in _inject
2022-07-20 22:31:14 -04:00
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.
2022-07-19 01:58:58 -04:00
98c4f2ae8b
Fix utils.copy_doc being partially unknown
2022-07-19 01:36:18 -04:00
a01dad283f
Add extraneous debug logging to sub ratelimits being detected
2022-07-19 01:36:18 -04:00
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.
2022-07-19 01:36:18 -04:00
85ea418776
Special case message deletion sub rate limits
2022-07-19 00:07:28 -04:00
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 <josh.ja.butt@gmail.com >
2022-07-19 00:07:28 -04:00
4914e74029
Change variable name for binding error handler to be more generic
2022-07-17 23:46:47 -04:00
0546343bcb
[commands] Add cog-level app command error special method
2022-07-17 23:45:19 -04:00
2067819b75
Fix some minor typing errors
2022-07-17 21:40:05 -04:00
52f3a3496b
Update docs for abc.Messageable.pins()
2022-07-17 01:07:33 -04:00
faad035fa2
[commands] change Range to raise BadArgument for invalid values
2022-07-16 22:27:47 -04:00
c7e589033d
[Crowdin] Updated translation files
2022-07-15 00:16:01 -04:00
20d3871290
Add return type hint for some functions
2022-07-15 00:15:42 -04:00
e0341c9ef2
Add forum post rename system message
2022-07-11 06:05:07 -04:00
eea70b53cd
Fix small typos in docstrings
2022-07-11 00:05:09 -04:00
1aaa32d4bc
Add on_raw_app_command_permissions_update event
2022-07-10 04:00:26 -04:00
55b9a848ff
Implement AppCommand mentions
2022-07-09 23:06:09 -04:00
a8a6bf4f6c
Add advanced startup example
...
shows setup_hook and async context manager use with examples
approximating real world use cases
2022-07-08 03:07:32 -04:00
3433e13848
Prioritise async iteration before sync iteration in utils.find/get
2022-07-07 19:30:21 -04:00
04aeff660b
Add automod types to audit log
2022-07-07 19:30:03 -04:00
b88bdaf4c0
Add Intents.auto_moderation
2022-07-06 05:56:58 -04:00
b917904c1b
Prevent launching shards when bot is closed
...
Fix #8210
2022-07-06 05:54:18 -04:00
9fe19dcc69
[commands] Add Context.permissions and Context.bot_permissions
2022-07-04 21:48:36 -04:00
65a270d35a
Update bot_has_permissions to use Interaction.app_permissions
2022-07-04 21:47:47 -04:00
37c7c8fb34
[Crowdin] Updated translation files
2022-07-04 21:45:35 -04:00
5de9287902
Change abc.PrivateChannel to be a proper subclass
...
This fixes isinstance(thread, discord.abc.PrivateChannel) from
returning True
2022-07-04 05:48:02 -04:00
fd9c244f48
Validate Range to disallow min > max
2022-07-03 07:37:58 -04:00
c61e407b50
Fix typo in app_commands.AppCommandGroup
2022-07-01 22:31:54 -04:00
482e3ead9b
Improve documentation on AutoModAction.message_id
2022-07-01 20:12:07 -04:00
53a111872e
Fix ArrayFlags._from_value not having an initial value
2022-07-01 20:10:42 -04:00
b806ce332e
Fix passing proxy to interactions and webhooks
2022-07-01 19:27:42 -04:00
b5392ea0f1
[commands] Add support for Range[str, ...]
2022-07-01 19:21:56 -04:00
bac66a9dab
Add support for Range[str, ...] for app commands
2022-07-01 19:04:59 -04:00
b3a24846bd
Add Interaction.app_permissions
...
Fix #8193
2022-06-29 22:38:04 -04:00
3b5cd3b92c
Fix audit log for multiple app command permission updates
2022-06-29 22:20:23 -04:00
66dbed29b7
Add support for harmful_link automod triggers
...
Co-authored-by: Blue <blue@nqn.blue >
2022-06-29 21:52:22 -04:00
77a7b17265
Fix tiny errors
2022-06-29 21:50:52 -04:00
b7dd97dca9
[commands] Change Command.extras to match typing in app commands
2022-06-28 16:20:15 -04:00