Michael H
7057cb10c0
Allow Greedy[X] | Y
Constructs a Union. Needs to be special instance behavior due to
`__class_getitem__` being implemented to return an instance not a type
or GenericAlias.
2 months ago
Alex Nørgaard
8bad09e1d8
Add Discord timestamp converter and transformer
6 months ago
Rapptz
44a44e938f
Reformat entire project with ruff instead of black
1 year ago
Rapptz
8953938a53
Update Pyright to v1.1.394
2 years ago
z03h
442ad40ab2
[commands] Add SoundboardSoundConverter
2 years ago
Rapptz
6643784d33
[commands] Clarify Converter.convert exception raising
2 years ago
Rapptz
0e58a927dd
[commands] Add support for channel URLs in channel converter
Fix #9799
2 years ago
Josh
4e03b170ef
Update pyright version
3 years ago
Rapptz
5e86be3b72
[commands] Change lookup order to place nicknames last
3 years ago
Rapptz
dc4ed438a5
Fix plain username lookup for Guild.get_member_named
Fix #9451
3 years ago
Rapptz
48cca30ca1
Revert removal of discriminator lookup
3 years ago
Rapptz
df01db3490
Initial support for pomelo migration
3 years ago
Soheab_
a938b10e5a
[commands] Pass failed argument's value to BadLiteralArgument
4 years ago
chrispy
774219acae
[commands] Update Range examples to match app_commands.Range
4 years ago
Jonah Lawrence
d7b6a2ad12
Fix usage of single backticks to links and code-blocks
4 years ago
Rapptz
c35ff4cfc6
[commands] Allow Greedy to potentially maintain state between calls
4 years ago
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__`
4 years ago
Rapptz
9971c2e09a
[commands] Add __repr__ to Range
4 years ago
Varun J
75fd49e6a1
[commands] fix Range to allow 3.10 Union syntax
4 years ago
Puncher
64744a4938
[commands] Add missing attributetable to classes
4 years ago
Josh
01bb7ecb79
[commands] Add support for types.Union to Greedy
4 years ago
Bryan Forbes
d707019348
Bump Pyright to 1.1.265, fix type errors, and remove unnecessary ignores
4 years ago
z03h
faad035fa2
[commands] change Range to raise BadArgument for invalid values
4 years ago
Rapptz
fd9c244f48
Validate Range to disallow min > max
4 years ago
Rapptz
b5392ea0f1
[commands] Add support for Range[str, ...]
4 years ago
Josh
c9f777c873
Fix type annotations to adhere to latest pyright release
4 years ago
Rapptz
5536ef1eea
Update to pyright 1.1.242
4 years ago
Rapptz
de941ababe
Add Colour.from_str factory method
This moves the command extension parsing code over to the main library
since it can be potentially useful for others.
4 years ago
Josh
9fcb3c8871
[commands] Add overload to run_converters
4 years ago
Rapptz
ce15df4275
[commands] Allow commands.Range inside typing.Union or typing.Optional
4 years ago
Rapptz
5c61f2af48
[commands] Add ForumChannelConverter to the converter mapping
4 years ago
Rapptz
141d9f4c71
[commands] Add ForumChannelConverter converter
4 years ago
Rapptz
393fdde037
[commands] Add support for Greedy for hybrid commands
4 years ago
Rapptz
896932faf1
[commands] Add Range converter
This allows hybrid commands to also have a range annotation
4 years ago
James Hilton-Balfe
55c5be78cf
[commands] Implement commands.parameter
4 years ago
Kellen
4fd2d5fdfd
Remove redundant imports and variables
4 years ago
Rapptz
def035bf9a
Remove StoreChannel and any references to it
4 years ago
jack1142
5ffa3e85de
Update comments after `# type: ignore` to be compatible with PEP 484
4 years ago
z03h
5d6905a1bc
Update clean_content/channel_mentions for threads
4 years ago
Rapptz
1192d842e1
Fix some type checker errors and remove some type ignores
Caught from an upgraded Pyright
5 years ago
ChrisJL
68dbf0f882
[commands] Fix message converter not inferring channel when missing
5 years ago
Stocker
5aa696ccfa
Fix typing issues and improve typing completeness across the library
Co-authored-by: Danny <[email protected] >
Co-authored-by: Josh <[email protected] >
5 years ago
mysistersbrother
340f09a1c0
[commands] Update ScheduledEventConverter docs for clarity
Co-authored-by: Danny <[email protected] >
Co-authored-by: ashish <[email protected] >
5 years ago
z03h
93fba264ad
[commands] add ScheduledEvent converter
5 years ago
Aaron Hennessey
bf3eb0a7fe
[commands] Fix for _Bot Context generic in converters
5 years ago
Josh
39c5a4fdc3
Fix type-errors in commands extension
5 years ago
Josh
4dbe1af32f
Update sphinx and fix documentation issues
5 years ago
Vaskel
4e331704ae
[commands] Fix typing problems in commands.converter
5 years ago
Josh
61974411df
[commands] Fix issue in PartialMessageConverter._resolve channel
5 years ago
z03h
c628224403
[commands] Add GuildStickerConverter
5 years ago