138 Commits

Author SHA1 Message Date
chrispy
774219acae
[commands] Update Range examples to match app_commands.Range 2023-01-31 09:02:36 -05:00
Jonah Lawrence
d7b6a2ad12
Fix usage of single backticks to links and code-blocks 2022-10-26 04:26:56 -04:00
Rapptz
c35ff4cfc6 [commands] Allow Greedy to potentially maintain state between calls 2022-09-20 23:53:48 -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
Puncher
64744a4938
[commands] Add missing attributetable to classes 2022-08-30 00:50:59 -04:00
Josh
01bb7ecb79
[commands] Add support for types.Union to Greedy 2022-08-21 18:26:32 -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
z03h
faad035fa2
[commands] change Range to raise BadArgument for invalid values 2022-07-16 22:27:47 -04:00
Rapptz
fd9c244f48 Validate Range to disallow min > max 2022-07-03 07:37:58 -04:00
Rapptz
b5392ea0f1 [commands] Add support for Range[str, ...] 2022-07-01 19:21:56 -04:00
Josh
c9f777c873
Fix type annotations to adhere to latest pyright release 2022-06-12 15:30:45 -04:00
Rapptz
5536ef1eea Update to pyright 1.1.242 2022-04-30 19:37:01 -04:00
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.
2022-04-20 06:49:28 -04:00
Josh
9fcb3c8871
[commands] Add overload to run_converters 2022-04-17 05:28:16 -04:00
Rapptz
ce15df4275 [commands] Allow commands.Range inside typing.Union or typing.Optional 2022-04-13 22:43:11 -04:00
Rapptz
5c61f2af48 [commands] Add ForumChannelConverter to the converter mapping 2022-04-13 17:45:54 -04:00
Rapptz
141d9f4c71 [commands] Add ForumChannelConverter converter 2022-04-13 17:44:03 -04:00
Rapptz
393fdde037 [commands] Add support for Greedy for hybrid commands 2022-04-12 20:15:11 -04:00
Rapptz
896932faf1 [commands] Add Range converter
This allows hybrid commands to also have a range annotation
2022-04-12 20:15:11 -04:00
James Hilton-Balfe
55c5be78cf
[commands] Implement commands.parameter 2022-04-04 18:01:21 -04:00
Kellen
4fd2d5fdfd
Remove redundant imports and variables 2022-03-29 02:50:34 -04:00
Rapptz
def035bf9a Remove StoreChannel and any references to it 2022-03-28 00:09:19 -04:00
jack1142
5ffa3e85de
Update comments after # type: ignore to be compatible with PEP 484 2022-03-27 22:26:34 -04:00
z03h
5d6905a1bc
Update clean_content/channel_mentions for threads 2022-03-19 04:46:55 -04:00
Rapptz
1192d842e1 Fix some type checker errors and remove some type ignores
Caught from an upgraded Pyright
2022-03-16 01:46:58 -04:00
ChrisJL
68dbf0f882
[commands] Fix message converter not inferring channel when missing 2022-03-14 21:01:14 -04:00
Stocker
5aa696ccfa
Fix typing issues and improve typing completeness across the library
Co-authored-by: Danny <Rapptz@users.noreply.github.com>
Co-authored-by: Josh <josh.ja.butt@gmail.com>
2022-03-13 23:52:10 -04:00
mysistersbrother
340f09a1c0
[commands] Update ScheduledEventConverter docs for clarity
Co-authored-by: Danny <Rapptz@users.noreply.github.com>
Co-authored-by: ashish  <68690233+asheeeshh@users.noreply.github.com>
2022-03-10 00:20:11 -05:00
z03h
93fba264ad
[commands] add ScheduledEvent converter 2022-03-09 17:56:50 -05:00
Aaron Hennessey
bf3eb0a7fe
[commands] Fix for _Bot Context generic in converters 2022-03-09 17:55:55 -05:00
Josh
39c5a4fdc3
Fix type-errors in commands extension 2022-02-23 08:04:49 -05:00
Josh
4dbe1af32f
Update sphinx and fix documentation issues 2022-02-19 22:35:32 -05:00
Vaskel
4e331704ae
[commands] Fix typing problems in commands.converter 2022-02-18 23:04:56 -05:00
Josh
61974411df
[commands] Fix issue in PartialMessageConverter._resolve channel 2022-02-18 23:00:52 -05:00
z03h
c628224403
[commands] Add GuildStickerConverter 2021-08-10 08:31:20 -04:00
Alex Nørgaard
26e68b31ef
[commands] fix incorrect typings in ThreadConverter 2021-07-21 02:43:37 -04:00
Nadir Chowdhury
e2624b9a31
[commands] Fix (Partial)MessageConverter to work with thread messages 2021-07-10 03:11:34 -04:00
Rapptz
1a4e73d599 [commands] Get guild_id from message link for message converters 2021-07-09 09:14:01 -04:00
z03h
1ca5b7b8b2
[commands] update clean_content to work when standalone 2021-07-07 20:15:54 -04:00
Alex Nørgaard
5a7cfb3ce6
[commands] Add ThreadConverter 2021-07-05 00:40:57 -04:00
Rapptz
ed6c061d69 [commands] Fix guild channel converters to work in DMs
Fix #7147
2021-07-01 07:46:02 -04:00
thetimtoy
3c2cf06e46
[commands] Add attr and parameter "argument" to BadInviteArgument 2021-06-27 23:38:07 -04:00
Rapptz
0bc5f276a7 [commands] Change EmojiConverter to use Client.get_emoji 2021-06-12 03:05:28 -04:00
Nadir Chowdhury
757cfad38f
Type up **kwargs of various methods 2021-05-10 20:24:48 -04:00
sudosnok
2a6d79078e
[commands] Add GuildChannelConverter 2021-05-07 07:37:42 -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
58274eafbc [commands] Fix Generics causing other typing converters to fail 2021-04-30 01:23:56 -04:00
Rapptz
3b6a2b9e85 [commands] Fix Generic subcalsses used as a converter 2021-04-29 02:43:54 -04:00