| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Actually drop copy.copy in Member | Hornwitser | 2018-11-24 | 1 | -6/+0 |
| | | | | | | | Remove the old and slow Member._copy implementation that was left over by accident in 095f0ec. Since it was defined later it overrode the new implementation and rendered it moot. | ||||
| * | Add support for multiple activities | SnowyLuma | 2018-11-24 | 6 | -12/+24 |
| | | |||||
| * | add support for Bug Hunter and Early Supporter flags | bmintz | 2018-11-24 | 3 | -4/+20 |
| | | |||||
| * | Add missing asyncio imports from the examples | Capn | 2018-11-24 | 3 | -0/+3 |
| | | |||||
| * | [lint] Removed unused variable handler | Hornwitser | 2018-11-24 | 1 | -1/+0 |
| | | | | | Left over by the removal of handlers in 2721689. | ||||
| * | [lint] Remove extra whitespace in guild.py | Hornwitser | 2018-11-24 | 1 | -1/+1 |
| | | | | | Remove trailing whitespace in guild.py introduced by 3727ea9. | ||||
| * | [lint] Changed missed docstrings to raw-string | Hornwitser | 2018-11-24 | 1 | -2/+2 |
| | | | | | Missed by a4d1599 despite being pointed out in #1570. | ||||
| * | [lint] Fix import order | Hornwitser | 2018-11-24 | 19 | -70/+83 |
| | | | | | | Reorder imports to be consistenly grouped by standard library, third party library, and local modules in that order thoughout the library. | ||||
| * | [commands] Remove duplicated quote entries | Hornwitser | 2018-11-24 | 1 | -2/+0 |
| | | | | | | Remove two duplicated entries from the quote mapping in commands.view. These were introduced at the creation of this mapping in ea061ef. | ||||
| * | [lint] Do log formating lazily | Hornwitser | 2018-11-24 | 2 | -4/+4 |
| | | | | | | Convert log("fmt" % args) to log("fmt", args) as the latter is lazy and does not do the formating if the string is never logged. | ||||
| * | [lint] Simplyfy util.valid_icon_size | Hornwitser | 2018-11-24 | 1 | -1/+1 |
| | | | | | Remove redundant paranthesis and checks from util.valid_icon_size. | ||||
| * | [lint] Remove redundant paranthesis | Hornwitser | 2018-11-24 | 8 | -15/+15 |
| | | | | | | Remove redundant parenthisis around await expressions. Left over from f25091ef. | ||||
| * | [lint] Replace equality comparisons to singletons | Hornwitser | 2018-11-24 | 3 | -11/+11 |
| | | | | | | | | | Restrict the values accepted by comparisons with booleans to be actual booleans. Minor breaking of undocumented behaviour in permissions; the value to set bits to must be booleans (as indicated by the type error thrown). | ||||
| * | [lint] Rename exception variables to exc | Hornwitser | 2018-11-24 | 10 | -66/+66 |
| | | | | | | Use the more explicit (and common) exc instead of e as the variable holding the exception in except handlers. | ||||
| * | [lint] Remove redundant exception variables | Hornwitser | 2018-11-24 | 5 | -16/+13 |
| | | | | | | | Use bare raise statement when reraising the exception that occured, and remove unused exception variables. Also remove a pointless exception handler in discord.opus. | ||||
| * | [lint] Limit unneccessarily broad except clauses | Hornwitser | 2018-11-24 | 11 | -19/+19 |
| | | | | | Add exception qualifier(s) to bare except clauses swallowing exceptions. | ||||
| * | Revert "Rework documentation to not duplicate inherited members." | Rapptz | 2018-10-11 | 5 | -28/+44 |
| | | | | | This reverts commit 96981210b3415e15446db0b702b07fef25c8b680. | ||||
| * | [commands] Add call_once keyword-only parameter for Bot.remove_check | Rapptz | 2018-10-11 | 1 | -7/+8 |
| | | | | | | Technically a breaking change. This is to be a parallel with the Bot.add_check interface. | ||||
| * | Add Guild.splash_url_as | Matt (IPv4) | 2018-10-11 | 2 | -7/+38 |
| | | |||||
| * | Remove outdated note about bot accounts. | MusicOnline | 2018-10-11 | 1 | -2/+0 |
| | | | | | They can now delete all emoji | ||||
| * | Remove "Is there any documentation for ext.commands?" FAQ | MusicOnline | 2018-10-05 | 1 | -12/+0 |
| | | |||||
| * | Update set "Playing" status FAQ | MusicOnline | 2018-10-05 | 1 | -4/+11 |
| | | |||||
| * | Fix up Guild.create_custom_emoji docstring. | Rapptz | 2018-10-03 | 1 | -1/+1 |
| | | |||||
| * | Rework documentation to not duplicate inherited members. | Rapptz | 2018-10-03 | 5 | -44/+28 |
| | | | | | This will probably be reverted in 1 week. | ||||
| * | Add note regarding MORE_EMOJI in Guild.create_custom_emoji | MusicOnline | 2018-10-03 | 1 | -1/+2 |
| | | |||||
| * | Correct Guild.create_custom_emoji documentation | MusicOnline | 2018-10-02 | 1 | -2/+2 |
| | | |||||
| * | Add support for AuditLogDiff.slowmode_delay. | Rapptz | 2018-09-25 | 2 | -6/+14 |
| | | |||||
| * | [commands] Fix NameError in clean_content converter | Rapptz | 2018-09-25 | 1 | -1/+1 |
| | | |||||
| * | Don't try to close shards if there are none yet. | Gorialis | 2018-09-26 | 1 | -1/+3 |
| | | |||||
| * | Fix NameError and duplicate insertion bug when moving roles. | Rapptz | 2018-09-24 | 1 | -1/+1 |
| | | |||||
| * | Update Japanese documentation strings | Rapptz | 2018-09-24 | 4 | -2746/+3012 |
| | | |||||
| * | [commands] Elaborate more on disallowed types in Greedy and Optional | Rapptz | 2018-09-24 | 2 | -1/+8 |
| | | |||||
| * | Optimise tight loops in DiscordGateway.received_message | Rapptz | 2018-09-24 | 4 | -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. | Rapptz | 2018-09-24 | 3 | -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. | Rapptz | 2018-09-24 | 5 | -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. | Rapptz | 2018-09-24 | 9 | -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. | Rapptz | 2018-09-24 | 1 | -0/+6 |
| | | |||||
| * | [commands] Fix up Greedy documentation a bit. | Rapptz | 2018-09-24 | 3 | -13/+13 |
| | | |||||
| * | Forgot to add these images. | Rapptz | 2018-09-24 | 2 | -0/+0 |
| | | |||||
| * | [commands] Add commands.Greedy converter and documentation. | Rapptz | 2018-09-24 | 4 | -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.Optional | Rapptz | 2018-09-23 | 1 | -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.Union | zephyrkul | 2018-09-20 | 1 | -3/+3 |
| | | |||||
| * | Correct note note about editing emoji in Guild.create_custom_emoji. | Vexs | 2018-09-20 | 1 | -2/+0 |
| | | | | | Remove incorrect note; extension of #1575 | ||||
| * | Correct ClientException message raised in invocation hooks. | MusicOnline | 2018-09-20 | 2 | -4/+4 |
| | | | | | For when the hooks are not coroutines. | ||||
| * | Add colour attribute for BaseUser | MusicOnline | 2018-09-16 | 1 | -0/+12 |
| | | |||||
| * | Translate some more files to Japanese | Episword | 2018-09-15 | 4 | -2402/+2501 |
| | | |||||
| * | Fix webhook_update from code review | Jeremy Zhang | 2018-09-15 | 2 | -3/+4 |
| | | |||||
| * | Simple parser for WEBHOOKS_UPDATE | Jeremy Zhang | 2018-09-15 | 2 | -0/+10 |
| | | |||||
| * | Update Japanese string dump. | Rapptz | 2018-09-15 | 2 | -473/+671 |
| | | |||||
| * | Fix up the Sphinx strings causing warnings. | Rapptz | 2018-09-15 | 9 | -20/+20 |
| | | |||||