aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Publicly expose a type property for all channels.Rapptz2019-06-093-12/+22
| | | | Fix #2185
* Replace Enum with an internal one for significant speed improvements.Rapptz2019-06-093-59/+92
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This has been a massive pain point for me personally due to the poor design of the Enum class leading to the common use cases used in the library being significantly slow. Since this Enum is not public facing in terms of *creation*, I can only implement the APIs that are used when *accessing* them. This Enum is a drop-in replacement to the pre-existing enum.Enum class except it comes with significant speed-ups. Since this is a lot to go over, I will let the numbers speak for themselves: In [4]: %timeit enums.try_enum(enums.Status, 'offline') 263 ns ± 34.3 ns per loop (7 runs, 1000000 loops each) In [5]: %timeit NeoStatus.try_value('offline') 134 ns ± 0.859 ns per loop (7 runs, 10000000 loops each) In [6]: %timeit enums.Status.offline 116 ns ± 0.378 ns per loop (7 runs, 10000000 loops each) In [7]: %timeit NeoStatus.offline 31.6 ns ± 0.327 ns per loop (7 runs, 10000000 loops each) In [8]: %timeit enums.Status.offline.value 382 ns ± 15.2 ns per loop (7 runs, 1000000 loops each) In [9]: %timeit NeoStatus.offline.value 65.5 ns ± 0.953 ns per loop (7 runs, 10000000 loops each) In [10]: %timeit str(enums.Status.offline) 630 ns ± 14.8 ns per loop (7 runs, 1000000 loops each) In [11]: %timeit str(NeoStatus.offline) 253 ns ± 3.53 ns per loop (7 runs, 1000000 loops each) In [12]: %timeit enums.Status('offline') 697 ns ± 8.42 ns per loop (7 runs, 1000000 loops each) In [13]: %timeit NeoStatus('offline') 182 ns ± 1.83 ns per loop (7 runs, 10000000 loops each)
* Fix exception hierarchy documentation.Rapptz2019-06-081-3/+6
|
* Implement `Guild.get_all_premium_subscribers`NCPlayz2019-06-081-0/+5
|
* Document new Guild.featuresRapptz2019-06-071-3/+10
|
* Improve performance of parsing MESSAGE_UPDATE and MESSAGE_CREATE eventsRapptz2019-06-072-30/+68
| | | | | | | | Embed edits are no longer special cased in the dispatch code, which could lead to on_message_edit being called more often than it used to be called. I am not sure on the general impact on that being removed. Fixes #2195
* Improve documentationNCPlayz2019-06-0748-559/+642
|
* Added comment for/redo system informationNCPlayz2019-06-071-3/+2
|
* Implementing GET '/channels/:id' & '/guilds/:id/channels'NCPlayz2019-06-074-0/+94
| | | | Signed-off-by: NCPlayz <[email protected]>
* Add support for system channel flagsRapptz2019-06-064-3/+140
|
* Fix stray colon in Asset related docstringsRapptz2019-06-043-6/+6
|
* Add support for animated guild icons.Rapptz2019-06-043-8/+38
|
* Add support for new message types related to premium guilds.Rapptz2019-06-043-8/+40
|
* Add Member.premium_since to denote member boost date.Rapptz2019-06-041-1/+5
|
* Add Emoji.available fieldRapptz2019-06-041-1/+4
|
* Add Guild.premium_subscription_countRapptz2019-06-041-2/+6
|
* Add Guild.premium_tier and corresponding limits.Rapptz2019-06-041-1/+30
|
* Probably fix indentation.Rapptz2019-05-301-2/+2
|
* Update readthedocs.yml to v2 configuration file.Rapptz2019-05-301-4/+12
|
* Properly handle compute_prune_count in prune members endpoint.Rapptz2019-05-301-1/+1
|
* Use a dict instead of getattr for parsing events.Rapptz2019-05-293-4/+10
| | | | | | | | | | | Probably not a significant difference but might as well use it here. The basic idea is to cache the getattr calls instead of repeatedly doing it (since they're around 105ns on my machine). The dictionary lookup is about 41ns on my machine. The next step in speeding up library code some more should be in the parser bodies themselves but that's a problem to tackle another day.
* Speed-up utils.get for the common casesRapptz2019-05-291-11/+21
|
* Ensure message links resolve in the Messageable.pins note.Rapptz2019-05-271-2/+2
|
* Add note that Messageable.pins does not contain Message.reactionsRapptz2019-05-271-0/+6
| | | | Fix for #2189
* Make __repr__ slightly more detailed and add a few missing ones.Rapptz2019-05-269-15/+65
| | | | | | This includes raw events (which didn't have any) and a few other types that were missing them. Upon review some more useful fields were added to the repr output which would be more useful during debugging.
* Add note for Message.ttsRapptz2019-05-251-0/+2
| | | | Fix #2186
* Use attrgetter to speed up Member attribute access by 2x.Rapptz2019-05-251-2/+5
|
* Add Discord error code to HTTPException message.Rapptz2019-05-241-3/+3
|
* Fix pluralization errors in various filesEhren Julien-Neitzert2019-05-235-6/+6
| | | | | * Replaced instances of 'return an' with 'returns an' * fixed pluralization errors
* Grammar fixes for notes on EmbedProxyDante Dam2019-05-231-3/+3
|
* Add an insert_field_at method for the embed classKyber2019-05-231-0/+33
|
* Fix wording in documentation for ClientUser.localeHarmon2019-05-211-1/+1
|
* Added example for template checkboxesDante Dam2019-05-212-2/+2
|
* [commands] Fixed extra "only" in dm_only docsDante Dam2019-05-191-1/+1
|
* Add table showing what methods get invite attributes.Rapptz2019-05-191-1/+23
|
* Add asyncio.Task subclass for better __repr__ for events.Rapptz2019-05-192-3/+23
|
* [tasks] Add version added note to Loop.change_intervalSuhail2019-05-191-0/+2
|
* Validate kwargs in Client.startNCPlayz2019-05-191-0/+9
|
* Update on_group_join docsapple502j2019-05-181-2/+1
|
* [commands] Add missing backtick for is_nsfw docsDante Dam2019-05-171-1/+1
|
* [tasks] Add way to change interval at run-timeSuhail6inkling2019-05-171-10/+37
| | | | PR: #2162 Fixes: #2158
* Correct the documentation for methods and properties that return AssetsVexs2019-05-145-22/+22
|
* Added note to Emoji.userAllan Galarza2019-05-131-1/+2
|
* [tasks] Add indicator for internal task failureRapptz2019-05-131-2/+12
| | | | Fixes #2151
* [tasks] Log exception when something failed to logging.Rapptz2019-05-131-0/+6
|
* Add back __repr__ that were deleted in the Asset redesignBenjamin Mintz2019-05-133-0/+11
| | | | | | The Asset PR (be227ebcf0c8bad6b56798339b5414b8da414dc0) changed some namedtuple-deriving classes to object-deriving classes, which meant that the free __repr__ provided by namedtuple was removed
* [tasks] Return coro from before and after decoratorsSnowyLuma2019-05-131-1/+2
|
* Add India region to VoiceRegionapple502j2019-05-132-0/+4
|
* [tasks] Keep retrying before gracefully exiting.Rapptz2019-05-121-2/+10
|
* [tasks] Add Loop.stop to gracefully stop a task.Rapptz2019-05-121-0/+17
| | | | Updated docs will follow shortly.