| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Publicly expose a type property for all channels. | Rapptz | 2019-06-09 | 3 | -12/+22 |
| | | | | | Fix #2185 | ||||
| * | Replace Enum with an internal one for significant speed improvements. | Rapptz | 2019-06-09 | 3 | -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. | Rapptz | 2019-06-08 | 1 | -3/+6 |
| | | |||||
| * | Implement `Guild.get_all_premium_subscribers` | NCPlayz | 2019-06-08 | 1 | -0/+5 |
| | | |||||
| * | Document new Guild.features | Rapptz | 2019-06-07 | 1 | -3/+10 |
| | | |||||
| * | Improve performance of parsing MESSAGE_UPDATE and MESSAGE_CREATE events | Rapptz | 2019-06-07 | 2 | -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 documentation | NCPlayz | 2019-06-07 | 48 | -559/+642 |
| | | |||||
| * | Added comment for/redo system information | NCPlayz | 2019-06-07 | 1 | -3/+2 |
| | | |||||
| * | Implementing GET '/channels/:id' & '/guilds/:id/channels' | NCPlayz | 2019-06-07 | 4 | -0/+94 |
| | | | | | Signed-off-by: NCPlayz <[email protected]> | ||||
| * | Add support for system channel flags | Rapptz | 2019-06-06 | 4 | -3/+140 |
| | | |||||
| * | Fix stray colon in Asset related docstrings | Rapptz | 2019-06-04 | 3 | -6/+6 |
| | | |||||
| * | Add support for animated guild icons. | Rapptz | 2019-06-04 | 3 | -8/+38 |
| | | |||||
| * | Add support for new message types related to premium guilds. | Rapptz | 2019-06-04 | 3 | -8/+40 |
| | | |||||
| * | Add Member.premium_since to denote member boost date. | Rapptz | 2019-06-04 | 1 | -1/+5 |
| | | |||||
| * | Add Emoji.available field | Rapptz | 2019-06-04 | 1 | -1/+4 |
| | | |||||
| * | Add Guild.premium_subscription_count | Rapptz | 2019-06-04 | 1 | -2/+6 |
| | | |||||
| * | Add Guild.premium_tier and corresponding limits. | Rapptz | 2019-06-04 | 1 | -1/+30 |
| | | |||||
| * | Probably fix indentation. | Rapptz | 2019-05-30 | 1 | -2/+2 |
| | | |||||
| * | Update readthedocs.yml to v2 configuration file. | Rapptz | 2019-05-30 | 1 | -4/+12 |
| | | |||||
| * | Properly handle compute_prune_count in prune members endpoint. | Rapptz | 2019-05-30 | 1 | -1/+1 |
| | | |||||
| * | Use a dict instead of getattr for parsing events. | Rapptz | 2019-05-29 | 3 | -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 cases | Rapptz | 2019-05-29 | 1 | -11/+21 |
| | | |||||
| * | Ensure message links resolve in the Messageable.pins note. | Rapptz | 2019-05-27 | 1 | -2/+2 |
| | | |||||
| * | Add note that Messageable.pins does not contain Message.reactions | Rapptz | 2019-05-27 | 1 | -0/+6 |
| | | | | | Fix for #2189 | ||||
| * | Make __repr__ slightly more detailed and add a few missing ones. | Rapptz | 2019-05-26 | 9 | -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.tts | Rapptz | 2019-05-25 | 1 | -0/+2 |
| | | | | | Fix #2186 | ||||
| * | Use attrgetter to speed up Member attribute access by 2x. | Rapptz | 2019-05-25 | 1 | -2/+5 |
| | | |||||
| * | Add Discord error code to HTTPException message. | Rapptz | 2019-05-24 | 1 | -3/+3 |
| | | |||||
| * | Fix pluralization errors in various files | Ehren Julien-Neitzert | 2019-05-23 | 5 | -6/+6 |
| | | | | | | * Replaced instances of 'return an' with 'returns an' * fixed pluralization errors | ||||
| * | Grammar fixes for notes on EmbedProxy | Dante Dam | 2019-05-23 | 1 | -3/+3 |
| | | |||||
| * | Add an insert_field_at method for the embed class | Kyber | 2019-05-23 | 1 | -0/+33 |
| | | |||||
| * | Fix wording in documentation for ClientUser.locale | Harmon | 2019-05-21 | 1 | -1/+1 |
| | | |||||
| * | Added example for template checkboxes | Dante Dam | 2019-05-21 | 2 | -2/+2 |
| | | |||||
| * | [commands] Fixed extra "only" in dm_only docs | Dante Dam | 2019-05-19 | 1 | -1/+1 |
| | | |||||
| * | Add table showing what methods get invite attributes. | Rapptz | 2019-05-19 | 1 | -1/+23 |
| | | |||||
| * | Add asyncio.Task subclass for better __repr__ for events. | Rapptz | 2019-05-19 | 2 | -3/+23 |
| | | |||||
| * | [tasks] Add version added note to Loop.change_interval | Suhail | 2019-05-19 | 1 | -0/+2 |
| | | |||||
| * | Validate kwargs in Client.start | NCPlayz | 2019-05-19 | 1 | -0/+9 |
| | | |||||
| * | Update on_group_join docs | apple502j | 2019-05-18 | 1 | -2/+1 |
| | | |||||
| * | [commands] Add missing backtick for is_nsfw docs | Dante Dam | 2019-05-17 | 1 | -1/+1 |
| | | |||||
| * | [tasks] Add way to change interval at run-time | Suhail6inkling | 2019-05-17 | 1 | -10/+37 |
| | | | | | PR: #2162 Fixes: #2158 | ||||
| * | Correct the documentation for methods and properties that return Assets | Vexs | 2019-05-14 | 5 | -22/+22 |
| | | |||||
| * | Added note to Emoji.user | Allan Galarza | 2019-05-13 | 1 | -1/+2 |
| | | |||||
| * | [tasks] Add indicator for internal task failure | Rapptz | 2019-05-13 | 1 | -2/+12 |
| | | | | | Fixes #2151 | ||||
| * | [tasks] Log exception when something failed to logging. | Rapptz | 2019-05-13 | 1 | -0/+6 |
| | | |||||
| * | Add back __repr__ that were deleted in the Asset redesign | Benjamin Mintz | 2019-05-13 | 3 | -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 decorators | SnowyLuma | 2019-05-13 | 1 | -1/+2 |
| | | |||||
| * | Add India region to VoiceRegion | apple502j | 2019-05-13 | 2 | -0/+4 |
| | | |||||
| * | [tasks] Keep retrying before gracefully exiting. | Rapptz | 2019-05-12 | 1 | -2/+10 |
| | | |||||
| * | [tasks] Add Loop.stop to gracefully stop a task. | Rapptz | 2019-05-12 | 1 | -0/+17 |
| | | | | | Updated docs will follow shortly. | ||||