Commit Graph
3651 Commits
Author SHA1 Message Date
Rapptz 5096846c4e Allow None to be passed for Member.timeout 2022-04-01 00:09:02 -04:00
Rapptz 24f8f8d4a7 Rename MaxCommandsReached to CommandLimitReached 2022-03-31 23:10:13 -04:00
Rapptz a0618ef791 Clarify documentation certain tree methods 2022-03-31 10:31:48 -04:00
willandGitHub 2010b42f6a [docs] Fix capitalization typo in spoiler parameter documentation 2022-03-31 10:21:08 -04:00
Rapptz 34b2ff40b6 Change ValueError on max commands reached to a more specific exception 2022-03-31 09:34:48 -04:00
c11363f037 Rework File.spoiler to synchronise with the filename
Co-authored-by: Danny <Rapptz@users.noreply.github.com>
2022-03-31 09:18:36 -04:00
Rapptz 705c79df59 Remove second mapping used for parameter rename lookup
Just keying into param.display_name should be enough
2022-03-31 08:58:53 -04:00
Rapptz dfc92c223c Fix application commands not always sending the proper parameter name 2022-03-31 08:55:20 -04:00
Rapptz 170ab7b2bb Improve error when an invalid slash command name is given 2022-03-31 04:12:09 -04:00
Rapptz 29668c51ae [commands] Revert back to older help command implementation
The newer implementation did not play nicely with spawned tasks and
accessing HelpCommand.context, which was a frequent pain point when
writing paginated help commands.
2022-03-31 02:46:42 -04:00
Rapptz b4fbb08818 Allow runtime modification of timeout expiry at runtime
This is done through setting View.timeout while it's running
2022-03-31 01:54:13 -04:00
Jonah LawrenceandGitHub e80be19c4d Add to_file for assets and emojis 2022-03-31 01:34:02 -04:00
Jonah LawrenceandGitHub 1372ef407c Keep description in Attachment.to_file 2022-03-31 00:29:34 -04:00
Bryan ForbesandGitHub 06c257760b Update types to use Awaitable where possible 2022-03-30 22:00:24 -04:00
Rapptz ff24c5229e Add iterator special method for Namespace
Fix #7812
2022-03-30 21:45:30 -04:00
Jonah LawrenceandGitHub caac97c0d1 Allow empty iterables as a command_prefix 2022-03-30 20:07:44 -04:00
Rapptz b1fb5ed3d7 Fix autocomplete not working with renamed parameters
Fix #7810
2022-03-30 19:46:27 -04:00
Jonah LawrenceandGitHub 37bbfdce95 Add context_menu_command Message type 2022-03-30 19:13:00 -04:00
Bryan ForbesandGitHub 0a8065606a Update parent reference of Group children 2022-03-30 19:12:39 -04:00
Rapptz e515378076 Remove annotation on row property in subclasses 2022-03-29 23:04:34 -04:00
Rapptz 3215cb65e2 Raise if custom_id is not a str 2022-03-29 23:04:34 -04:00
Rapptz b7b992375d Add examples for new cooldown checks 2022-03-29 06:02:41 -04:00
z03handGitHub 55695dab3c [commands] Check for None max_concurrency 2022-03-29 04:49:37 -04:00
KellenandGitHub 4fd2d5fdfd Remove redundant imports and variables 2022-03-29 02:50:34 -04:00
ImNimbossandGitHub f5acd9e8b6 [commands] Add Command.cooldown property 2022-03-29 02:50:04 -04:00
Rapptz 9f83eb6032 Add application command cooldown decorators
Fix #7790
2022-03-29 00:46:42 -04:00
Rapptz 74b5e0ceb1 Implement some built in checks for app_commands
A lot of these implementations are adapted from the equivalent
ext.commands checks. These only implement the common ones that could
not solely be done by Discord in the future.
2022-03-28 16:36:29 -04:00
Bryan ForbesandGitHub 8524bfb54d Fix caching of UnionType instead of resolved typing.Union 2022-03-28 16:24:03 -04:00
Ryu juheonandGitHub 9012c424bf Replace - with # in # type: ignore comments in rename decorator 2022-03-28 09:28:01 -04:00
I. AhmadandGitHub ae1979d17a [commands] Add note for command tree in Bot's docstring 2022-03-28 09:19:27 -04:00
Nadir ChowdhuryandGitHub c6d0c82d66 Implement app_commands.rename decorator 2022-03-28 05:52:33 -04:00
Rapptz def035bf9a Remove StoreChannel and any references to it 2022-03-28 00:09:19 -04:00
Rapptz 0a7eb6b021 Only verify if context menus pass a length check
According to Discord this is the check that is actually done
2022-03-27 23:32:36 -04:00
pikaninjaandGitHub 40bab465a5 Remove user account reference in docstring 2022-03-27 22:26:49 -04:00
jack1142andGitHub 5ffa3e85de Update comments after # type: ignore to be compatible with PEP 484 2022-03-27 22:26:34 -04:00
PuncherandGitHub 0bcb0d0e3c Allow context menus have ? and ! in their name 2022-03-26 23:41:05 -04:00
chromacoat dreamkeyandGitHub 7362a2582c Fix InvalidArgument typo in Webhook.edit 2022-03-26 21:21:37 -04:00
chromacoat dreamkeyandGitHub dd3536be63 Fix typo in Member.edit documentation 2022-03-26 21:21:15 -04:00
I. AhmadandGitHub 80e42d139c Add missing types for two permissions in PermissionOverwrite 2022-03-26 21:20:46 -04:00
z03handGitHub 8993b7f5fe Add cover_image to AuditLogDiff 2022-03-26 08:48:02 -04:00
Rapptz 985f5732c0 Refactor ContextMenu constructor to allow app command type inferring 2022-03-25 09:11:11 -04:00
HarukaandGitHub cda1f0a4ef Allow receiving messages from voice channels 2022-03-25 04:24:19 -04:00
Rapptz 816d2176e9 Ignore type error already handled by exception handling 2022-03-24 23:50:47 -04:00
Rapptz 968a1f366f Change View callback order to (self, interaction, item)
This is more consistent with the rest of the library which always has
the interaction as the first parameter. This has been done before in
the command extension as well, the first parameter is always either
self or the context.
2022-03-24 23:00:50 -04:00
James GayferandGitHub 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
JoshandGitHub 2d1cbacc58 [commands] Add tree_cls to Bot constructor 2022-03-24 22:32:31 -04:00
UltimateSppy765andGitHub 6d494585f5 Correct documentation for TextInput.custom_id 2022-03-23 18:38:22 -04:00
I. AhmadandGitHub 181fc42b9b Remove outdated note and example 2022-03-23 04:19:55 -04:00
Rapptz e9ed231a03 Allow Transformer.transform to be synchronous as well. 2022-03-22 22:44:42 -04:00
Rapptz 1f3aa377c3 Wrap non-AppCommandError exceptions with TransformerError 2022-03-22 19:07:22 -04:00