Commit Graph

3962 Commits

Author SHA1 Message Date
f26d3a7155 Add interaction check to command tree
In some cases, it's desirable for our command tree to only process a
subset of incoming interactions, such as in a multi process deployment.
2022-03-24 22:32:56 -04:00
2d1cbacc58 [commands] Add tree_cls to Bot constructor 2022-03-24 22:32:31 -04:00
6d494585f5 Correct documentation for TextInput.custom_id 2022-03-23 18:38:22 -04:00
181fc42b9b Remove outdated note and example 2022-03-23 04:19:55 -04:00
e9ed231a03 Allow Transformer.transform to be synchronous as well. 2022-03-22 22:44:42 -04:00
1f3aa377c3 Wrap non-AppCommandError exceptions with TransformerError 2022-03-22 19:07:22 -04:00
b0501e56a0 Fix PermissionOverwrite.update typing not allowing None 2022-03-22 18:55:42 -04:00
062f4d6f87 Change some methods to use positional-only marker
Co-authored-by: Danny <Rapptz@users.noreply.github.com>
2022-03-22 18:52:25 -04:00
c6d113c843 Change PUBLIC to COMMUNITY in Guild.edit 2022-03-22 18:11:43 -04:00
7a815a97af Fix audit logs for INVITE_CREATE returning None 2022-03-22 18:04:52 -04:00
eca4727593 [commands] Add missing and fix existing type annotations 2022-03-22 06:04:46 -04:00
46b3e036e2 [commands] Fix help error/invoke hooks not running 2022-03-22 06:02:52 -04:00
7851084b63 Revert "Crowdin translations download"
This reverts commit 414759f372.
2022-03-21 22:53:45 -04:00
414759f372 Crowdin translations download
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2022-03-21 16:47:15 -04:00
84c38f1f22 Ignore errors if it's already handled in app commands 2022-03-21 04:07:05 -04:00
f7c664e3e2 Add error handler support for context menus 2022-03-21 03:56:28 -04:00
97fe07edb2 Update migration guide with change to Message.channel_mentions type 2022-03-21 01:12:34 -04:00
5202956f97 Update migration guide with loop-related changes to Client's constructor 2022-03-21 01:12:20 -04:00
cf2707b2fb Propagate thread_id in webhook message methods
This also adds the remaining thread parameters where they were missing
2022-03-20 19:43:51 -04:00
6dc314628e Make guild and guilds args in Bot.remove_cog() keyword-only 2022-03-20 19:01:37 -04:00
5fa32540a4 Change Message to subclass PartialMessage 2022-03-20 15:18:24 -04:00
515d17405a Fix typos in some View methods' docstrings 2022-03-20 12:59:23 -04:00
4dc24a005a Fix typo in PartialMessageable docstring 2022-03-20 04:11:35 -04:00
58c1e8fabf Remove unnecessary exported variables 2022-03-20 02:58:48 -04:00
d55f8d38ad Add PartialMessageable.__repr__ 2022-03-20 02:58:29 -04:00
7389707847 Only send allowed_mentions if content changed 2022-03-20 02:55:48 -04:00
2876622f84 Fix typo in app command check documentation 2022-03-19 15:48:00 -04:00
1b70fad5ec [commands] Fix exceptions in HelpCommand 2022-03-19 13:14:17 -04:00
fafc5b13f6 [commands] Rework help command to avoid a deepcopy on invoke 2022-03-19 06:34:19 -04:00
Pat
94f4da9248 Change View child mutators to be fluent-style methods 2022-03-19 04:48:50 -04:00
5d6905a1bc Update clean_content/channel_mentions for threads 2022-03-19 04:46:55 -04:00
195c923bec Fallback to Object if the type is not resolved in namespace 2022-03-19 01:38:16 -04:00
bea6b815e2 Add support for app command checks
This does not include any built-in checks due to design considerations.
2022-03-19 01:24:53 -04:00
5f7c5abe0a Change ban type hints to use int instead of Literal 2022-03-18 21:45:15 -04:00
13d19dc5ce Fix typo in http_trace parameter documentation 2022-03-18 10:49:24 -04:00
77ec49782a Add http_trace option in Client to trace the library's HTTP requests 2022-03-18 08:02:53 -04:00
4a76464ac9 Fix return value of Guild.chunk 2022-03-18 07:37:28 -04:00
8d86ee3fe3 Fix mention_author suppressing all mentions 2022-03-18 01:52:11 -04:00
02b79eb219 [commands] Change BotT to be covariant 2022-03-18 01:13:50 -04:00
98a31cf285 Change autocomplete callbacks to only take two parameters
The old namespace parameter can be retrieved using the
Interaction.namespace property instead, which leads to somewhat cleaner
code.
2022-03-17 10:13:09 -04:00
d2f6b05c43 Fix missing List -> Sequence typehint in interaction message edit 2022-03-17 10:00:03 -04:00
f5341a1cfa Document cases where setup_hook can deadlock rather than raising 2022-03-17 09:56:25 -04:00
202b993da3 Add Interaction.command and Interaction.namespace attributes 2022-03-17 09:45:21 -04:00
3c6daff473 Change default ellipsis descriptions to use U+2026 2022-03-17 07:37:33 -04:00
70470753cd Update images in bot creation guide 2022-03-17 07:27:56 -04:00
caf2000fe8 Add missing annotation for ThreadMember.id 2022-03-17 07:27:13 -04:00
e01d4a31eb Replace invariant container types with wider types where applicable 2022-03-17 07:26:01 -04:00
3e77a7b29e Forbid wait_until_ready inside setup_hook 2022-03-17 07:25:10 -04:00
c77bbc4dcf Move with_counts parameter documentation where it belongs 2022-03-16 07:43:31 -04:00
5b8bcaff73 Validate and bind parent in Group.add_command 2022-03-16 07:32:01 -04:00