z03h 
							
						 
					 
					
						
						
							
						
						8851e03a6d 
					 
					
						
						
							
							[commands] fix bot_has_role and is_nsfw for threads  
						
						
						
						
					 
					
						2021-07-30 21:26:49 -04:00 
						 
				 
			
				
					
						
							
							
								Rapptz 
							
						 
					 
					
						
						
							
						
						731a8816bb 
					 
					
						
						
							
							[commands] Check for ctx.guild instead of abc.GuildChannel  
						
						
						
						
					 
					
						2021-07-28 23:53:24 -04:00 
						 
				 
			
				
					
						
							
							
								Stocker 
							
						 
					 
					
						
						
							
						
						1472e9ed7c 
					 
					
						
						
							
							Fixes minor grammatical error in Command.update  
						
						
						
						
					 
					
						2021-07-28 19:56:36 -04:00 
						 
				 
			
				
					
						
							
							
								Rapptz 
							
						 
					 
					
						
						
							
						
						a3d7e06f25 
					 
					
						
						
							
							[commands] Add back CommandOnCooldown.type  
						
						
						
						
					 
					
						2021-07-02 05:39:54 -04:00 
						 
				 
			
				
					
						
							
							
								Rapptz 
							
						 
					 
					
						
						
							
						
						982140b5f7 
					 
					
						
						
							
							[commands] Mention that dynamic_cooldown callable can return None  
						
						
						
						
					 
					
						2021-07-02 05:35:38 -04:00 
						 
				 
			
				
					
						
							
							
								Rapptz 
							
						 
					 
					
						
						
							
						
						bac6c2fc7b 
					 
					
						
						
							
							[commands] Unwrap functions to get their module and globalns  
						
						... 
						
						
						
						Fixes  #7002  
					
						2021-06-01 08:51:35 -04:00 
						 
				 
			
				
					
						
							
							
								Michael H 
							
						 
					 
					
						
						
							
						
						52678b2eb5 
					 
					
						
						
							
							[commands] Add Command.extras  
						
						
						
						
					 
					
						2021-05-29 00:18:02 -04:00 
						 
				 
			
				
					
						
							
							
								NextChai 
							
						 
					 
					
						
						
							
						
						ef6f5d947a 
					 
					
						
						
							
							[commands] Update command.parent and command.parents docs  
						
						... 
						
						
						
						* Switch root_parent from command to group 
						
						
					 
					
						2021-05-15 02:09:37 -04:00 
						 
				 
			
				
					
						
							
							
								Josh 
							
						 
					 
					
						
						
							
						
						3864fb37a0 
					 
					
						
						
							
							Fix various reference issues in documentation  
						
						... 
						
						
						
						Co-Authored-By: Riley Shaw <30989490+ShineyDev@users.noreply.github.com > 
						
						
					 
					
						2021-05-06 07:51:07 -04:00 
						 
				 
			
				
					
						
							
							
								Rapptz 
							
						 
					 
					
						
						
							
						
						9f3551926a 
					 
					
						
						
							
							Split annotation resolution to discord.utils  
						
						
						
						
					 
					
						2021-04-27 05:48:27 -04:00 
						 
				 
			
				
					
						
							
							
								Rapptz 
							
						 
					 
					
						
						
							
						
						69da87f455 
					 
					
						
						
							
							[commands] Disallow float/complex in Literal but allow None  
						
						... 
						
						
						
						Type checkers (both mypy and pydantic) apparently don't like it 
						
						
					 
					
						2021-04-27 05:48:27 -04:00 
						 
				 
			
				
					
						
							
							
								Rapptz 
							
						 
					 
					
						
						
							
						
						c250b9fc02 
					 
					
						
						
							
							[commands] Fix regression with Union converters not working  
						
						... 
						
						
						
						This was due to the Literal restriction from earlier. 
						
						
					 
					
						2021-04-24 09:33:35 -04:00 
						 
				 
			
				
					
						
							
							
								Rapptz 
							
						 
					 
					
						
						
							
						
						185b554a56 
					 
					
						
						
							
							[commands] Disallow complicated Literal types  
						
						
						
						
					 
					
						2021-04-24 09:12:28 -04:00 
						 
				 
			
				
					
						
							
							
								Rapptz 
							
						 
					 
					
						
						
							
						
						15bfdf66b2 
					 
					
						
						
							
							[commands] Default construct flags if they're not passed as parameters  
						
						... 
						
						
						
						This only applies if and only if the flag can be default constructible.
Ergo, all the flags are optional or not required. 
						
						
					 
					
						2021-04-20 08:00:47 -04:00 
						 
				 
			
				
					
						
							
							
								Rapptz 
							
						 
					 
					
						
						
							
						
						c54e43360b 
					 
					
						
						
							
							[commands] Add run_converters helper to call converters  
						
						
						
						
					 
					
						2021-04-19 04:46:02 -04:00 
						 
				 
			
				
					
						
							
							
								Rapptz 
							
						 
					 
					
						
						
							
						
						09f3f2111c 
					 
					
						
						
							
							[commands] Add Context.current_parameter  
						
						
						
						
					 
					
						2021-04-19 04:41:32 -04:00 
						 
				 
			
				
					
						
							
							
								Rapptz 
							
						 
					 
					
						
						
							
						
						7fb746e6e5 
					 
					
						
						
							
							[commands] Refactor evaluation functions to allow passing in localns  
						
						
						
						
					 
					
						2021-04-18 04:10:19 -04:00 
						 
				 
			
				
					
						
							
							
								Rapptz 
							
						 
					 
					
						
						
							
						
						74b07a3218 
					 
					
						
						
							
							[commands] Fix Command.clean_params to return a regular dict  
						
						
						
						
					 
					
						2021-04-11 16:30:28 -04:00 
						 
				 
			
				
					
						
							
							
								Rapptz 
							
						 
					 
					
						
						
							
						
						74d8ad2013 
					 
					
						
						
							
							[commands] Add support for Python 3.10 Union typing  
						
						
						
						
					 
					
						2021-04-11 02:11:24 -04:00 
						 
				 
			
				
					
						
							
							
								Josh 
							
						 
					 
					
						
						
							
						
						7f91ae8b67 
					 
					
						
						
							
							[commands] use __args__ and __origin__ where applicable  
						
						
						
						
					 
					
						2021-04-11 00:38:17 -04:00 
						 
				 
			
				
					
						
							
							
								Rapptz 
							
						 
					 
					
						
						
							
						
						3151672cfe 
					 
					
						
						
							
							[commands] Refactor typing evaluation to not use get_type_hints  
						
						... 
						
						
						
						get_type_hints had a few issues:
1. It would convert = None default parameters to Optional
2. It would not allow values as type annotations
3. It would not implicitly convert some string literals as ForwardRef
In Python 3.9 `list['Foo']` does not convert into
`list[ForwardRef('Foo')]` even though `typing.List` does this
behaviour. In order to streamline it, evaluation had to be rewritten
manually to support our usecases.
This patch also flattens nested typing.Literal which was not done
until Python 3.9.2. 
						
						
					 
					
						2021-04-10 20:56:08 -04:00 
						 
				 
			
				
					
						
							
							
								James 
							
						 
					 
					
						
						
							
						
						bcd3a00eaf 
					 
					
						
						
							
							[commands] Make commands.Greedy a typing.Generic  
						
						
						
						
					 
					
						2021-04-10 07:27:32 -04:00 
						 
				 
			
				
					
						
							
							
								Dan Hess 
							
						 
					 
					
						
						
							
						
						f2d5ab6f80 
					 
					
						
						
							
							[commands] Provide a dynamic cooldown system  
						
						
						
						
					 
					
						2021-04-10 03:30:01 -04:00 
						 
				 
			
				
					
						
							
							
								Sigmath Bits 
							
						 
					 
					
						
						
							
						
						68aef92b37 
					 
					
						
						
							
							[commands]Add typing.Literal converter  
						
						
						
						
					 
					
						2021-04-10 02:50:59 -04:00 
						 
				 
			
				
					
						
							
							
								Rapptz 
							
						 
					 
					
						
						
							
						
						99fc950510 
					 
					
						
						
							
							Use f-strings in more places that were missed.  
						
						
						
						
					 
					
						2021-04-08 06:02:47 -04:00 
						 
				 
			
				
					
						
							
							
								Rapptz 
							
						 
					 
					
						
						
							
						
						f80b8d3f5d 
					 
					
						
						
							
							[commands] Only replace annotation if one was given  
						
						
						
						
					 
					
						2021-04-07 03:17:36 -04:00 
						 
				 
			
				
					
						
							
							
								Nadir Chowdhury 
							
						 
					 
					
						
						
							
						
						7a34de1570 
					 
					
						
						
							
							[commands] Use typing.get_type_hints to resolve ForwardRefs  
						
						
						
						
					 
					
						2021-04-06 23:24:23 -04:00 
						 
				 
			
				
					
						
							
							
								Rapptz 
							
						 
					 
					
						
						
							
						
						9ab58d302d 
					 
					
						
						
							
							[commands] Fix classmethod converters not working.  
						
						... 
						
						
						
						Protocols sure are annoying. 
						
						
					 
					
						2021-04-05 23:52:28 -04:00 
						 
				 
			
				
					
						
							
							
								Rapptz 
							
						 
					 
					
						
						
							
						
						ee5bb07c02 
					 
					
						
						
							
							[commands] Revert conversion code back to how it was originally  
						
						
						
						
					 
					
						2021-04-05 23:24:47 -04:00 
						 
				 
			
				
					
						
							
							
								ToxicKidz 
							
						 
					 
					
						
						
							
						
						0efb720cec 
					 
					
						
						
							
							[commands] Fix AttributeError for classes missing convert attribute  
						
						
						
						
					 
					
						2021-04-05 23:12:27 -04:00 
						 
				 
			
				
					
						
							
							
								Michael H 
							
						 
					 
					
						
						
							
						
						fbe6e2f520 
					 
					
						
						
							
							[commands] Fix @classmethod converters  
						
						
						
						
					 
					
						2021-04-05 20:25:23 -04:00 
						 
				 
			
				
					
						
							
							
								James 
							
						 
					 
					
						
						
							
						
						34ab772653 
					 
					
						
						
							
							Use typing.Protocol instead of abc.ABCMeta  
						
						
						
						
					 
					
						2021-04-04 18:05:49 -04:00 
						 
				 
			
				
					
						
							
							
								Rapptz 
							
						 
					 
					
						
						
							
						
						9d39b135f4 
					 
					
						
						
							
							Modernize code to use f-strings  
						
						... 
						
						
						
						This also removes the encoding on the top, since Python 3 does it by
default. It also changes some methods to use `yield from`. 
						
						
					 
					
						2021-04-04 07:03:53 -04:00 
						 
				 
			
				
					
						
							
							
								Mikey 
							
						 
					 
					
						
						
							
						
						d61486278f 
					 
					
						
						
							
							[commands] allow arbitrary callables in cooldown  
						
						
						
						
					 
					
						2021-03-28 06:31:51 -04:00 
						 
				 
			
				
					
						
							
							
								Sebastian Law 
							
						 
					 
					
						
						
							
						
						a131e11c5e 
					 
					
						
						
							
							[commands] fix documented type for Command.checks  
						
						
						
						
					 
					
						2021-03-24 08:24:14 -04:00 
						 
				 
			
				
					
						
							
							
								Nadir Chowdhury 
							
						 
					 
					
						
						
							
						
						63ec23bac2 
					 
					
						
						
							
							Code optimisations and refactoring via Sourcery  
						
						
						
						
					 
					
						2021-02-24 21:26:51 -05:00 
						 
				 
			
				
					
						
							
							
								Sebastian Law 
							
						 
					 
					
						
						
							
						
						1afc127458 
					 
					
						
						
							
							[commands] Add Context.invoked_parents  
						
						
						
						
					 
					
						2021-02-23 03:39:08 -05:00 
						 
				 
			
				
					
						
							
							
								Bryan Forbes 
							
						 
					 
					
						
						
							
						
						16e0adb315 
					 
					
						
						
							
							[commands] Handle positional-only parameters in bot commands  
						
						
						
						
					 
					
						2021-02-17 23:48:09 -05:00 
						 
				 
			
				
					
						
							
							
								Rapptz 
							
						 
					 
					
						
						
							
						
						b9a99238e8 
					 
					
						
						
							
							[commands] Add Command/Cog.has_error_handler  
						
						... 
						
						
						
						This allows querying the state without relying on internal undocumented
attributes. 
						
						
					 
					
						2021-01-15 06:00:45 -05:00 
						 
				 
			
				
					
						
							
							
								Nihaal Sangha 
							
						 
					 
					
						
						
							
						
						69bdc3a184 
					 
					
						
						
							
							Change copyright year to present  
						
						
						
						
					 
					
						2021-01-15 05:28:11 -05:00 
						 
				 
			
				
					
						
							
							
								jack1142 
							
						 
					 
					
						
						
							
						
						ed2650f786 
					 
					
						
						
							
							Fix documented type of Command.usage  
						
						
						
						
					 
					
						2021-01-14 03:17:18 -05:00 
						 
				 
			
				
					
						
							
							
								Sebastian Law 
							
						 
					 
					
						
						
							
						
						e9e81d1a55 
					 
					
						
						
							
							[commands] fully remove command when CommandRegistrationError is raised for alias  
						
						
						
						
					 
					
						2020-12-29 08:24:54 -05:00 
						 
				 
			
				
					
						
							
							
								Dan Hess 
							
						 
					 
					
						
						
							
						
						faffc8eeb2 
					 
					
						
						
							
							[commands] Correct concurrency never releasing during prepare call  
						
						
						
						
					 
					
						2020-12-26 20:58:58 -05:00 
						 
				 
			
				
					
						
							
							
								Rapptz 
							
						 
					 
					
						
						
							
						
						f9dd200314 
					 
					
						
						
							
							[commands] max_concurrency comes before cooldowns  
						
						... 
						
						
						
						Fix  #6172  
					
						2020-12-17 22:21:45 -05:00 
						 
				 
			
				
					
						
							
							
								Michael 
							
						 
					 
					
						
						
							
						
						93fa46713a 
					 
					
						
						
							
							Fix and add documentation  
						
						
						
						
					 
					
						2020-09-23 03:19:35 -04:00 
						 
				 
			
				
					
						
							
							
								Josh 
							
						 
					 
					
						
						
							
						
						f8a7d3fc54 
					 
					
						
						
							
							[commands] Fix exception raised in Command invoke hooks.  
						
						
						
						
					 
					
						2020-09-09 19:47:05 -04:00 
						 
				 
			
				
					
						
							
							
								Skye Im 
							
						 
					 
					
						
						
							
						
						af88fc19b3 
					 
					
						
						
							
							[commands] Update Bot.command() decorator docs  
						
						
						
						
					 
					
						2020-09-07 22:29:02 -04:00 
						 
				 
			
				
					
						
							
							
								Nadir Chowdhury 
							
						 
					 
					
						
						
							
						
						367c4b5fd2 
					 
					
						
						
							
							[docs] remove unresolved doc refs, fix attribute ref  
						
						
						
						
					 
					
						2020-09-07 22:25:11 -04:00 
						 
				 
			
				
					
						
							
							
								khazhyk 
							
						 
					 
					
						
						
							
						
						6349d37a97 
					 
					
						
						
							
							[commands] add require_var_positional  
						
						
						
						
					 
					
						2020-09-07 22:24:48 -04:00 
						 
				 
			
				
					
						
							
							
								Rapptz 
							
						 
					 
					
						
						
							
						
						0a7e2f7c2f 
					 
					
						
						
							
							[commands] BadBooleanArgument -> BadBoolArgument  
						
						
						
						
					 
					
						2020-09-04 08:47:07 -04:00