z03h
c628224403
[commands] Add GuildStickerConverter
4 years ago
Alex Nørgaard
26e68b31ef
[commands] fix incorrect typings in ThreadConverter
4 years ago
Nadir Chowdhury
e2624b9a31
[commands] Fix (Partial)MessageConverter to work with thread messages
4 years ago
Rapptz
1a4e73d599
[commands] Get guild_id from message link for message converters
4 years ago
z03h
1ca5b7b8b2
[commands] update clean_content to work when standalone
4 years ago
Alex Nørgaard
5a7cfb3ce6
[commands] Add ThreadConverter
4 years ago
Rapptz
ed6c061d69
[commands] Fix guild channel converters to work in DMs
Fix #7147
4 years ago
thetimtoy
3c2cf06e46
[commands] Add attr and parameter "argument" to BadInviteArgument
4 years ago
Rapptz
0bc5f276a7
[commands] Change EmojiConverter to use Client.get_emoji
4 years ago
Nadir Chowdhury
757cfad38f
Type up **kwargs of various methods
4 years ago
sudosnok
2a6d79078e
[commands] Add GuildChannelConverter
4 years ago
Josh
3864fb37a0
Fix various reference issues in documentation
Co-Authored-By: Riley Shaw <[email protected] >
4 years ago
Rapptz
58274eafbc
[commands] Fix Generics causing other typing converters to fail
4 years ago
Rapptz
3b6a2b9e85
[commands] Fix Generic subcalsses used as a converter
4 years ago
jack1142
a55e817ffe
Fix documentation for RoleConverter
4 years ago
Rapptz
c54e43360b
[commands] Add run_converters helper to call converters
4 years ago
Nadir Chowdhury
5dec62f4c0
[commands] Add a converter for discord.Object
4 years ago
Nadir Chowdhury
d3ac191a67
Restrict snowflake regexes to 15-20 digits
4 years ago
Josh
c54c4cb215
[commands] Fix repr for Greedy
4 years ago
Nadir Chowdhury
353737239a
[commands] Minimise code duplication in channel converters
4 years ago
James
bcd3a00eaf
[commands] Make `commands.Greedy` a `typing.Generic`
4 years ago
Michael H
682b73abb6
[commands] Address incorrect use of subclass (from type perspective)
This is a follow up from #6641
4 years ago
Michael H
d0476e98df
[commands] Add more type information to public API of converters
4 years ago
Michael H
83bd76504a
Use covariant TypeVar for protocol
4 years ago
James
34ab772653
Use typing.Protocol instead of abc.ABCMeta
4 years ago
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`.
4 years ago
Rapptz
421c0cd455
[commands] Add missing versionadded on StoreChannelConverter
4 years ago
DoggieLicc
36318bd45c
[commands] Add StoreChannelConverter
4 years ago
Nadir Chowdhury
1b2688518e
Implement StageChannel and related methods
4 years ago
Edwin
31ee3fafc1
Add remove_markdown helper function
4 years ago
Nihaal Sangha
a3f700c11f
Fix references to snowflakes being max 21 long
4 years ago
Rapptz
a0404807d5
[commands] Add support for rgb function in ColourConverter
This also adds support for 3 digit hex.
Fixes #6374
4 years ago
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.
4 years ago
Nihaal Sangha
69bdc3a184
Change copyright year to present
4 years ago
Josh
eeafc9363f
[commands] Add PartialMessageConverter
4 years ago
Ben Skerritt
0995d07727
[commands] Added in missing channel links
4 years ago
Rapptz
0456458ad1
[commands] Fetch user if an ID is passed and cache lookup fails.
4 years ago
Rapptz
431ee8794b
Fix error with templates not having access to member cache flags.
This also changes the attribute from having an underscore
Fix #5986
5 years ago
Jonathan Feenstra
c54d6f03c5
[commands] Update MessageConverter link regex
Remove redundant parts of the MessageConverter regexes and support www
5 years ago
Rapptz
3daaadafdd
[commands] Lazily fetch members in discord.Member converters
This makes commands taking members mostly work transparently without
much effort from the user.
5 years ago
Michael
93fa46713a
Fix and add documentation
5 years ago
Simon Beal
6ebd2e13a1
[commands] Add subclasses of BadArgument for converters
5 years ago
parafoxia
ad04fbeee4
[commands] Added ColorConverter alias
5 years ago
James
475762e8df
Document raises for Converter.convert
5 years ago
Sebastian Law
7a07644de3
[commands] Raise TypeError when Optional is used with Greedy converter
5 years ago
Rapptz
66c6be50d8
Prepare for the discord.com domain rename
5 years ago
Rapptz
02397306b2
Drop superfluous zero in version related changes in the documentation
5 years ago
Hugo Woesthuis
ee6f4e85d6
[commands] Allow @ prefixed usernames in DM contexts for UserConverter
Previously the argument '@user#0000' return None.
To fix this, as this is a common user error, an extra check was added
to remove the first character from the argument if this is an '@'.
Discord names may not contain an '@' anyways.
5 years ago
Rapptz
6071607176
Bump copyright year to 2020
Closes #2510
5 years ago
Rapptz
2e6882bd8c
[commands] Fall back to using Message.mentions in converters
Useful if there's no cache.
6 years ago