775 Commits

Author SHA1 Message Date
Leonardo
f4c0a051ab
[commands] Hint hybrid commands in GroupCog's description 2023-01-14 18:55:32 -05:00
Rapptz
da317ad84b [commands] Respect ignore_extra for FlagConverter kw-only parameters 2022-11-29 18:09:53 -05:00
Alex Nørgaard
50078087e5
[commands] Fix variance issues in Bot.add_cog with List[Snowflake] 2022-11-21 01:15:18 -05:00
Steve C
7365dd1bd2
[commands] Allow delete_after in Context.send on ephemeral messages 2022-10-26 04:29:25 -04:00
Jonah Lawrence
d7b6a2ad12
Fix usage of single backticks to links and code-blocks 2022-10-26 04:26:56 -04:00
Julien Mauroy
d0625154ed
[commands] Add Cog.has_app_command_error_handler 2022-10-10 16:37:48 -04:00
crayyy_zee
8f19cfe729
[commands] Add missing description parameter to docs 2022-10-05 17:59:42 -04:00
ster
95b6bd8782
Add coro tag to docstrings that were missing it 2022-10-02 17:52:18 -04:00
Omkaar
c30a2f3ca0
Refactor certain f-strings and literals 2022-10-02 17:50:56 -04:00
Jakub Kuczys
7c218b3833
Fix migration guide docs for abc.PrivateChannel and cooldown()
* Move PrivateChannel ABC change to proper subsection in migration guide
* Add change to the accepted callables in cooldown() to migration guide
2022-10-01 03:16:01 -04:00
Rapptz
c35ff4cfc6 [commands] Allow Greedy to potentially maintain state between calls 2022-09-20 23:53:48 -04:00
Caleb
edfacb36cf
[commands] Fix HybridCommandGroup._update_copy to update fallback
Fix #8461
2022-09-12 15:31:08 -04:00
Ionite
6981eb69c4
Normalize type formatting in TypeError
Normalize most mixed usages of `__class__`, `__class__!r`, 
`__class__.__name__!r` to the standard form of 
`__class__.__name__`
2022-09-12 15:25:55 -04:00
Rapptz
9971c2e09a [commands] Add __repr__ to Range 2022-09-08 02:06:36 -04:00
Varun J
75fd49e6a1
[commands] fix Range to allow 3.10 Union syntax 2022-09-08 02:04:07 -04:00
Rapptz
9ed5fbecea [commands] Add support for NumPy style docstrings for commands 2022-09-04 00:34:17 -04:00
NextChai
bdda31307b
[commands] Add GroupCog.group_extras to set Group.extras
Co-authored-by: Danny <1695103+Rapptz@users.noreply.github.com>
2022-08-31 01:28:39 -04:00
Rapptz
6ab6b2cb96 [commands] Fix Context.from_interaction ignoring command_failed 2022-08-30 05:08:11 -04:00
Puncher
64744a4938
[commands] Add missing attributetable to classes 2022-08-30 00:50:59 -04:00
Bryan Forbes
b12b4b18fd
Mark public callbacks as positional-only 2022-08-22 15:21:19 -04:00
Josh
01bb7ecb79
[commands] Add support for types.Union to Greedy 2022-08-21 18:26:32 -04:00
Bobby-McBobface
641dcf61a5
[commands] Fix incorrect docs in dynamic_cooldown
Co-authored-by: Danny <1695103+Rapptz@users.noreply.github.com>
2022-08-19 16:15:14 -04:00
Rapptz
1c7747fe9d Fix nested Annotated calls not resolving 2022-08-17 10:41:57 -04:00
Rapptz
54ee383585 [commands] Add warning if Intent.message_content is not enabled 2022-08-17 03:52:29 -04:00
Rapptz
bd19ad05e7 Fix app_command_completion triggering on certain errors 2022-08-16 20:03:02 -04:00
Rapptz
1a11c9eeee [commands] Properly set module information for hybrid commands 2022-08-16 01:28:27 -04:00
Soheab
668196c14c
[commands] Add description kwarg to parameters and show in default help 2022-08-15 12:18:23 -04:00
JohannesIBK
610edaeead [commands] Add option to disable auto_locale_strings in GroupCog 2022-08-14 00:59:33 -04:00
Rapptz
9ce1541775 Rename Interaction.original_message to original_response 2022-08-08 08:11:19 -04:00
Puncher
44abc469f1
[commands] Remove unused with_command HybridCommand parameter 2022-08-07 17:20:02 -04:00
Rapptz
2d586ae805 Add initial support for app command localisation 2022-08-05 22:35:30 -04:00
Rapptz
eb3bc7102b [commands] Ensure Command.extras are copied
Fix #8309
2022-08-05 21:56:51 -04:00
Bryan Forbes
d707019348
Bump Pyright to 1.1.265, fix type errors, and remove unnecessary ignores 2022-08-04 22:46:02 -04:00
Rapptz
60079aee1b [commands] Fix Annotated not working with FlagConverter 2022-08-04 10:44:03 -04:00
Rapptz
6c42065210 Fix various a -> an typos across the library
Closes #8301, #8287
2022-08-04 08:17:07 -04:00
Maya
2fb309a463
[commands] Fix typing error with CheckAnyFailure 2022-08-03 03:11:12 -04:00
Bryan Forbes
07ad6951fb
Fix various generics throughout the public interface
Fix CooldownMapping generic typing and ensure other public methods 
have proper generics
2022-08-01 06:24:55 -04:00
Soheab
f5b0717661
[commands] Add get_app_commands and walk_app_commands to Cog 2022-08-01 06:22:02 -04:00
Rapptz
5527de688a Fix Python 3.10 __or__ not working with transformers
Fixes #8214
2022-07-30 04:48:26 -04:00
Rapptz
11618cd1ba Refactor transformers to use instances instead of classmethods
This should allow them to be easier to use for users without requiring
a lot of metaprogramming hackery if you want to involve state.
2022-07-30 04:40:28 -04:00
Rapptz
c43d302a28 [commands] Only call hybrid after_invoke hooks if the command is called
Fix #8276
2022-07-29 21:39:23 -04:00
StockerMC
1fbcfbd1fb Fix cog_app_command_error for group edge case 2022-07-27 22:27:37 -04:00
Stocker
6d1069e789
Fix cog_app_command_error for groups 2022-07-27 00:29:53 -04:00
Rapptz
b68568f375 [commands] Fix type annotations to use Union instead of | 2022-07-23 15:11:19 -04:00
Mikey
311891912e
[commands] Change cooldowns to take context instead of message 2022-07-23 07:08:44 -04:00
Sebastian Law
9c109ae59b
[commands] Unload cog when command registration fails in _inject 2022-07-20 22:31:14 -04:00
Stocker
0546343bcb
[commands] Add cog-level app command error special method 2022-07-17 23:45:19 -04:00
z03h
faad035fa2
[commands] change Range to raise BadArgument for invalid values 2022-07-16 22:27:47 -04:00
zephyrkul
9fe19dcc69
[commands] Add Context.permissions and Context.bot_permissions 2022-07-04 21:48:36 -04:00
Rapptz
fd9c244f48 Validate Range to disallow min > max 2022-07-03 07:37:58 -04:00