Compare commits
	
		
			1 Commits
		
	
	
		
			JDJGInc/pa
			...
			Astrea49/c
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|  | 4baf615cd4 | 
| @@ -598,6 +598,7 @@ class ColourConverter(Converter[discord.Colour]): | |||||||
|  |  | ||||||
|     The following formats are accepted: |     The following formats are accepted: | ||||||
|      |      | ||||||
|  |     - ``<hex>`` | ||||||
|     - ``0x<hex>`` |     - ``0x<hex>`` | ||||||
|     - ``#<hex>`` |     - ``#<hex>`` | ||||||
|     - ``0x#<hex>`` |     - ``0x#<hex>`` | ||||||
| @@ -668,7 +669,9 @@ class ColourConverter(Converter[discord.Colour]): | |||||||
|  |  | ||||||
|         arg = arg.replace(' ', '_') |         arg = arg.replace(' ', '_') | ||||||
|         method = getattr(discord.Colour, arg, None) |         method = getattr(discord.Colour, arg, None) | ||||||
|         if arg.startswith('from_') or method is None or not inspect.ismethod(method): |         if method is None: | ||||||
|  |             return self.parse_hex_number(argument) | ||||||
|  |         elif arg.startswith('from_') or not inspect.ismethod(method): | ||||||
|             raise BadColourArgument(arg) |             raise BadColourArgument(arg) | ||||||
|         return method() |         return method() | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user