aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Correct Guild.create_custom_emoji documentationMusicOnline2018-10-021-2/+2
|
* Add support for AuditLogDiff.slowmode_delay.Rapptz2018-09-252-6/+14
|
* [commands] Fix NameError in clean_content converterRapptz2018-09-251-1/+1
|
* Don't try to close shards if there are none yet.Gorialis2018-09-261-1/+3
|
* Fix NameError and duplicate insertion bug when moving roles.Rapptz2018-09-241-1/+1
|
* Update Japanese documentation stringsRapptz2018-09-244-2746/+3012
|
* [commands] Elaborate more on disallowed types in Greedy and OptionalRapptz2018-09-242-1/+8
|
* Optimise tight loops in DiscordGateway.received_messageRapptz2018-09-244-44/+53
| | | | | | * type(x) is y is faster than isinstance(x, y) * Re-arrange if-statements for common statements * Drop handler getattr for most events that don't use it
* Optimise some member and user related routines.Rapptz2018-09-243-5/+33
| | | | | | | * Skip user update if possible * Drop copy.copy in favour of manual copy Credit to Hornwitser for these findings.
* Change internal representation of roles in Member and Emoji.Rapptz2018-09-245-21/+67
| | | | | | | | | | | | | | | Introduce a new internal type, SnowflakeList, which has better memory footprint over a regular list or set of roles. It is suspected that there will be a 9x reduction of memory for every Emoji instance and a 48 byte saving per Member instance. However, these savings will probably only be evident on larger bots. As a consequence of this change, Member.roles is now computed lazily. Currently I am not sure if I want to do the initial sorting on the SnowflakeList for Member, as this comes with a O(n log n) cost when creating a Member for little purpose since SnowflakeList.has is not overly relied on. If CPU time becomes an issue this might change.
* Change internal role storage in Guild to a dict instead of a list.Rapptz2018-09-249-46/+61
| | | | | | | | | | | | | | | | This adds the following APIs: * Guild.get_role This removes the following APIs: * Guild.role_hierarchy To compensate for the removed APIs, Guild.roles is now a sorted list based on hierarchy. The first element will always be the @everyone role. This speeds up access at the cost of some memory, theoretically.
* Take the default role property into account when comparing roles.Rapptz2018-09-241-0/+6
|
* [commands] Fix up Greedy documentation a bit.Rapptz2018-09-243-13/+13
|
* Forgot to add these images.Rapptz2018-09-242-0/+0
|
* [commands] Add commands.Greedy converter and documentation.Rapptz2018-09-244-2/+217
| | | | | This allows for greedy "consume until you can't" behaviour similar to typing.Optional but for lists.
* [commands] Allow for backtracking parsing with typing.OptionalRapptz2018-09-231-0/+10
| | | | | | | | | | Original code by zephyrkul. This new parsing mode allows for backtracking in case of failure when a typing.Union[..., NoneType] or a typing.Optional[...] is used. This means that if a type would fail to parse, the view is undo'd to a previous state, passing the default parameter to the callback, and then continuing on the next parameter as if nothing had happened.
* [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
|
* Translate some more files to JapaneseEpisword2018-09-154-2402/+2501
|
* Fix webhook_update from code reviewJeremy Zhang2018-09-152-3/+4
|
* Simple parser for WEBHOOKS_UPDATEJeremy Zhang2018-09-152-0/+10
|
* Update Japanese string dump.Rapptz2018-09-152-473/+671
|
* Fix up the Sphinx strings causing warnings.Rapptz2018-09-159-20/+20
|
* 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.
* Update PyNaCl dependency to one that works with 3.7ItWasAllIntended2018-09-141-1/+2
| | | This also adds the 3.7 classifier as with this there are no 3.7 issues
* Change docstrings to raw-stringsBeatButton2018-09-1414-29/+29
|
* Bump aiohttp contraint to <3.5.0Toby Harradine2018-09-061-1/+1
| | | | | New version contains many bugfixes, a couple new features and seemingly no breaking changes (for this lib's purposes at least). Relevant changes: https://github.com/aio-libs/aiohttp/blob/master/CHANGES.rst#340-2018-08-25
* [docs] sort the VoiceRegionsbmintz2018-08-301-33/+33
| | | | | | having them appear in the docs ordered by their internal number is not useful to the user. Sorting them by name allows one to more quickly locate a voice region in the docs.
* document HypeSquadHouse and Profile.hypesquad_housesbmintz2018-08-301-1/+17
|
* 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
|
* Fix typo in on_raw_reaction_add event.Chris2018-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
|
* Finished index.po translation.Episword2018-08-281-22/+23
|
* 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
|
* Move conditional RTD dependencies to 'docs' extraToby Harradine2018-08-222-17/+7
|
* 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
|