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
jack1142
a55e817ffe
Fix documentation for RoleConverter
2021-04-21 23:24:04 -04:00
Rapptz
c54e43360b
[commands] Add run_converters helper to call converters
2021-04-19 04:46:02 -04:00
Nadir Chowdhury
5dec62f4c0
[commands] Add a converter for discord.Object
2021-04-16 08:18:57 -04:00
Nadir Chowdhury
d3ac191a67
Restrict snowflake regexes to 15-20 digits
2021-04-16 07:33:44 -04:00
Josh
c54c4cb215
[commands] Fix repr for Greedy
2021-04-10 22:34:24 -04:00
Nadir Chowdhury
353737239a
[commands] Minimise code duplication in channel converters
2021-04-10 14:01:26 -04:00
James
bcd3a00eaf
[commands] Make commands.Greedy
a typing.Generic
2021-04-10 07:27:32 -04:00
Michael H
682b73abb6
[commands] Address incorrect use of subclass (from type perspective)
...
This is a follow up from #6641
2021-04-05 21:39:17 -04:00
Michael H
d0476e98df
[commands] Add more type information to public API of converters
2021-04-05 21:31:28 -04:00
Michael H
83bd76504a
Use covariant TypeVar for protocol
2021-04-05 20:29:15 -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
Rapptz
421c0cd455
[commands] Add missing versionadded on StoreChannelConverter
2021-04-03 22:54:21 -04:00
DoggieLicc
36318bd45c
[commands] Add StoreChannelConverter
2021-04-03 22:50:17 -04:00
Nadir Chowdhury
1b2688518e
Implement StageChannel and related methods
2021-04-03 22:43:41 -04:00
Edwin
31ee3fafc1
Add remove_markdown helper function
2021-03-28 18:38:34 -04:00
Nihaal Sangha
a3f700c11f
Fix references to snowflakes being max 21 long
2021-03-02 19:04:03 -05:00
Rapptz
a0404807d5
[commands] Add support for rgb function in ColourConverter
...
This also adds support for 3 digit hex.
Fixes #6374
2021-02-07 07:18:56 -05:00
Alex Nørgaard
68eb844d48
[commands] Add discord.Guild converter and GuildNotFound error
...
* Add discord.Guild converter and GuildNotFound error
* note for lack of disambiguation in Guilds with duplicate names, and removed the possibility of returning None
* edited converter to use `utils.get` over `utils.find` and docs edited with Converter and Exception.
2021-02-07 05:32:33 -05:00
Nihaal Sangha
69bdc3a184
Change copyright year to present
2021-01-15 05:28:11 -05:00
Josh
eeafc9363f
[commands] Add PartialMessageConverter
2021-01-15 05:26:03 -05:00