Hornwitser
c8b49d37be
[lint] Fix incorrect and inconsistent whitespace
Adjust whitespace to be consistent with the rest of the library.
7 years ago
Hornwitser
d58fc0ccee
[lint] Remove unused imports
Left over from various refactoring and rewrites.
7 years ago
Rapptz
f25091efe1
Drop support for Python 3.4 and make minimum version 3.5.2.
7 years ago
Gorialis
04d9dd9c0d
Change PartialReactionEmoji to PartialEmoji, add a PartialEmojiConverter
7 years ago
Tobotimus
3112e1c17e
Add intersphinx
7 years ago
Joshua Butt
f5a443fa8f
Add support for animated emoji to commands ext EmojiConverter
7 years ago
Rapptz
e614f6b4cd
[commands] Add CategoryChannelConverter
8 years ago
Rapptz
eb673ec2af
[commands] Ensure no mentions escape clean_content
Some clever nicknames or role names would lead themselves to
resolving to pings.
8 years ago
Rapptz
cb709cc9da
[commands] Fix clean_content converter not properly escaping mentions.
In some cases, the Discord provided role_mentions and mentions array
would be empty, such as wrapping a mention with a backtick or
other frivolous characters. Since we want to completely nullify
mentions, we should not rely on the Discord provided arrays and instead
use and resolve the IDs from the content itself.
8 years ago
Rapptz
b2cf11fe9d
[commands] Add escape_markdown parameter for clean_content.
8 years ago
Rapptz
093d888173
[commands] Fix EmojiConverter not working with underscore names.
8 years ago
Rapptz
b44bba6ee6
First pass at documentation reform.
8 years ago
Rapptz
d7478425ca
[commands] Converter.convert is always a coroutine.
Along with this change comes with the removal of Converter.prepare and
adding two arguments to Converter.convert, the context and the argument.
I suppose an added benefit is that you don't have to do attribute
access since it's a local variable.
8 years ago
Rapptz
3e15f46dcf
[commands] Bot.get_all_emojis no longer exists.
8 years ago
Rapptz
7da0884bfb
[commands] Export missing built-in converters.
8 years ago
Rapptz
e1c32626ba
[commands] Fix User converter not working with IDs.
8 years ago
Rapptz
6166cbc2e7
[commands] Add commands.clean_content converter.
8 years ago
Rapptz
e10cae5dbc
[commands] Allow converters to be instantiated.
This allows for you to create converters that can have varying
behaviour using the converter's __init__ instead of having to do a
meta-class based approach to get around the fact that __init__ is part
of the interface.
To make up for the lack of __init__, a new method Converter.prepare was
added to do the work that __init__ used to do.
8 years ago
Rapptz
aac769eb56
[commands] Fix converters returning the wrong types when an ID is passed
8 years ago
Rapptz
ff9f5749e1
Update copyright year to 2017.
8 years ago
Rapptz
11b54d67c9
[commands] Change UserConverter to actually work with User, not Member.
8 years ago
Rapptz
406984af2e
[commands] First pass in making commands ext work again.
8 years ago
Rapptz
d1d54a468a
Rename Server to Guild everywhere.
9 years ago
Rapptz
45c729b167
Switch IDs to use int instead of str
9 years ago
Rapptz
152b3a1125
[commands] Default converters now take in IDs to match against.
9 years ago
Rapptz
a55e1241a7
[commands] Add missing inspect import in converter.py
9 years ago
Khazhismel
c72c23278d
[commands] Add custom emoji converter.
9 years ago
Rapptz
1500001b04
[commands] Fix error in converters in a private message context.
I was referencing a member function that did not actually exist. So I
ported it over to a free function that could be used.
9 years ago
Rapptz
e64eb08c92
[commands] Port special cased discord converters to commands.Converter
9 years ago