aboutsummaryrefslogtreecommitdiff
path: root/discord
Commit message (Collapse)AuthorAgeFilesLines
* [commands] Properly parse bool when inside a typing.Unionzephyrkul2018-09-201-3/+3
|
* Correct note note about editing emoji in Guild.create_custom_emoji.Vexs2018-09-201-2/+0
| | | | Remove incorrect note; extension of #1575
* Correct ClientException message raised in invocation hooks.MusicOnline2018-09-202-4/+4
| | | | For when the hooks are not coroutines.
* Add colour attribute for BaseUserMusicOnline2018-09-161-0/+12
|
* Fix webhook_update from code reviewJeremy Zhang2018-09-151-2/+3
|
* Simple parser for WEBHOOKS_UPDATEJeremy Zhang2018-09-151-0/+4
|
* Fix up the Sphinx strings causing warnings.Rapptz2018-09-158-18/+18
|
* Add support for Discord's slow mode.Rapptz2018-09-143-8/+24
| | | | | | | Adds the following: * `slowmode_delay` for `TextChannel.edit` * `slowmode_delay` attribute for `TextChannel`
* Removed inaccurate note on emoji.pyTarek13372018-09-141-2/+0
| | | | | | | In the docs, it says ``Note that bot accounts can only edit custom emojis they own.`` But after testing a bit. My bot was able to edit emojis in any guild that had the permissions `manage_roles`. Even if the bot didn't own the guild. Or was the original emoji uploader. And I don't see any mentions of this in the API server or in the documentation. So I'm unsure how this ended up in here. It's possible I am misunderstanding the whole note. My bad if that's the case.
* Change docstrings to raw-stringsBeatButton2018-09-1414-29/+29
|
* Fix PartialEmoji._as_reaction() for emojis the bot can't seeCarl Groth2018-08-301-1/+1
| | | | | | | If the bot has access to the emoji, you can pass anything for its name and it will work fine. The name is only required to be correct when adding a reaction where you do not have access to the emoji, all other cases ignore the name.
* [commands] Prepend mention prefixes in commands.when_mentioned_orzephyrkul2018-08-281-1/+1
|
* Call Http.start_group() in ClientUser.create_group()Bryan Forbes2018-08-281-1/+1
|
* Ensure large guilds are properly appended to the ready state guild listBryan Forbes2018-08-281-1/+1
|
* Fix CallMessage.duration calculationBryan Forbes2018-08-281-2/+2
|
* Remove Reaction.users "Python 3.4 usage" sectionHornwitser2018-08-281-11/+0
| | | | | Remove nonsensical "Python 3.4" usage section from Reaction.users(). Left behind from f25091ef.
* Fix behavior of reaction type-conversionBryan Forbes2018-08-251-1/+2
|
* Fix latency being able to be negativeorlnub1232018-08-241-6/+9
|
* Correct Member.__hash__Mitchell Ferree2018-08-231-1/+1
| | | Make Member.__hash__ just use whatever its User object's hash impl is.
* Fix send_as_json not dispatching socket_raw_sendorlnub1232018-08-231-1/+1
|
* Fix typo in core.Command docstringSilicalNZ2018-08-241-1/+1
|
* [commands] Use eval instead of get_type_hints to resolve typehintsRapptz2018-08-221-14/+19
| | | | | | | | | | | The previous usage of `typing.get_type_hints` caused issues as it would incorrectly decide to convert annotations into their equivalent `typing` form -- which is not what we want to happen here. Due to some use-cases about how setting `Command.callback` work and the amount of moving parts that have changed due to this patch, it is probably better to refactor the way it is set so users can have this use-case handled transparently for them.
* Added hypesquad house functionalitymental2018-08-223-2/+36
|
* Bot.unload_extension: don't remove commands from no moduleBen Mintz2018-08-221-0/+2
| | | Fixes unload_extension in the case of a command added via eval
* Add support for converters working with PEP-563Bryan Forbes2018-08-221-0/+12
|
* [lint] Fix types used for __slots__ and __all__Hornwitser2018-08-224-4/+4
| | | | | Stay consistent with the rest of the library and use lists for module __all__ values and tuples for class __slots__ attributes.
* [lint] Replace deprecated Logger function warnHornwitser2018-08-221-1/+1
| | | | | | | The method log of Logger has never been documented as being a part of the standard logging module. It was renamed to warning when the module was included in the standard library, but the old name was kept for backward compatibility.
* [lint] Fix incorrect and inconsistent whitespaceHornwitser2018-08-2226-66/+62
| | | | Adjust whitespace to be consistent with the rest of the library.
* [lint] Remove unnecessary lambdasHornwitser2018-08-223-3/+3
| | | | Lambdas of the form `lambda x: func(x)` are redundant.
* [lint] Remove unused variablesHornwitser2018-08-227-10/+9
| | | | Left over from various refactoring and rewrites.
* [lint] Remove unused importsHornwitser2018-08-2216-21/+3
| | | | Left over from various refactoring and rewrites.
* Fix Reaction.users documentationMusicOnline2018-08-221-4/+1
|
* Adds missing voice regions.MaximusPX2018-08-221-0/+2
|
* Add Colour.from_hsvbmintz2018-08-221-0/+8
| | | | | HSV is an easier to use colour format, and its inclusion in the colour module will hopefully encourage its use.
* Add support for splash(_url) to invitesDismissedGuy2018-08-221-0/+6
|
* Implement roles kwarg for guild.create_custom_emoji and emoji.editPikalaxALT2018-08-223-8/+18
|
* More informations for the Application infoEl Laggron2018-08-221-1/+6
| | | | | This adds the rpc_origin, bot_public and bot_require_code_grant attributes
* [commands] Handle nick mentions in HelpFormatterMichael H2018-08-221-2/+2
| | | | | Modifies the help formatter to handle nicknamed bot users for mentions in clean_prefix
* [commands] Ignore bots from Bot.process_commands by default.Rapptz2018-08-221-1/+7
|
* Update Message.author doctringDunkledore2018-08-221-1/+1
|
* [commands] Added BucketType.members for cooldownsClement2018-08-222-1/+5
|
* Explicitly mark event handlers privateRapptz2018-08-091-2/+2
|
* Add Permissions.priority_speaker.slice2018-07-311-3/+12
|
* message: de-duplicate reaction type conversionbmintz2018-07-311-23/+15
| | | | | | Removes some duplicate code in Message.{add,remove}_reaction. The code in question converts the emoji object from Reaction, Emoji, str, or PartialEmoji to a string form suitable for sending over the wire.
* Fix dumb typo in the warning.Rapptz2018-07-241-2/+3
|
* Add a warning for self-bots in Client.loginRapptz2018-07-241-0/+6
| | | | Closes #1449
* Add clarification about creating guildsKot2018-07-241-2/+2
|
* [commands] Fix broken handling of keyword only parameters.Rapptz2018-07-211-1/+1
| | | | Had a missing `param` argument in the new `do_conversion` code.
* [commands] Fix typing.Union converters for 3.7Rapptz2018-07-201-12/+17
| | | | Guido please don't break this
* [commands] Make ConversionError have the original error as an attributeRapptz2018-07-202-2/+6
|