aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Add notes warning that fetch_ methods are api callsVexs2019-04-102-0/+25
| | | | Also recommends using cache attributes/methods instead
* Fix various bugs with Asset._url None handling.Rapptz2019-04-091-2/+4
|
* Fix cleanup code on Linux not working properly.Rapptz2019-04-091-9/+17
|
* Stop the event loop if it's running during cleanup.Rapptz2019-04-091-1/+8
| | | | Also handle the coroutine directly instead of using run_until_complete
* Use is_connected() instead of _connected in checksDaniel2019-04-091-2/+2
| | | Was doing a falsy check on an Event object instead of using the (unused) is_connected() function.
* Fix broken documentation attributeSteve C2019-04-091-1/+1
|
* Fix issue with speaking state causing an error.Rapptz2019-04-081-0/+3
|
* Update classifier in setup.pyv1.0.0Rapptz2019-04-081-1/+1
|
* Version bump to v1.0.0Rapptz2019-04-081-2/+2
|
* Update Japanese translation files.Rapptz2019-04-088-3488/+8740
|
* Add notes stating what Guild.fetch_guild and Guild.fetch_guilds returnsNCPlayz2019-04-081-2/+12
| | | | Also fixed two typos.
* Fix documentation so Sphinx can build semi-cleanly.Rapptz2019-04-082-4/+4
|
* Bump PyNaCl to 1.3.0Rapptz2019-04-081-1/+1
|
* Wording nit, library -> function in load_opusRapptz2019-04-081-1/+1
|
* Change all IntEnum to EnumRapptz2019-04-082-8/+8
| | | | A testament to how many 3.5 users there are.
* Remove manual documentation for AppInfoRapptz2019-04-082-50/+4
|
* Missing a word in Attachment.saveRapptz2019-04-081-2/+2
|
* Fix oversight where on_disconnect did not get called on WS termination.Rapptz2019-04-082-0/+3
|
* Fix long-standing issue with user updates not dispatching properly.Rapptz2019-04-083-8/+43
| | | | | | | | | | | | | | | | | | | | | | This fix is long coming. For a long time due to the addition of a global user cache, the on_member_update event would only have the updated user in the very first dispatch due to a quirk in the reference only being updated once. In order to fix this issue two things had to change: 1. There had to be a new event, `on_user_update` to complement the equivalent member event. 2. Unnecessary copies of User had to be removed to compensate for the performance hit from the diffing. While doing these two fixes I also re-evaluated some more unnecessary copies done during the PRESENCE_UPDATE to add member case while fetch_offline_members=False is set or due to chunking issues. The number of copies was brought down from 2 to 1, discounting the original Member creation. Unsure on the benefits of this one, however. N.B: this doesn't change the pre-existing behaviour of on_member_update
* GUILD_MEMBER_UPDATE no longer does actual user updates.Rapptz2019-04-082-8/+2
| | | | | This had been delegated to PRESENCE_UPDATE a long time ago, unfortunately.
* Don't use an enum when unnecessary in Member._client_statusRapptz2019-04-081-1/+1
|
* Add a note to load_opus that it's auto loaded on Windows.Rapptz2019-04-081-0/+5
|
* Add some version guarantees to the documentation.Rapptz2019-04-084-6/+45
|
* terminate iterators immediately once out of datakhazhyk2019-04-071-2/+2
| | | | | | | | | | if len(data) < 100, either limit was less than 100, or we ran out of results, in both cases, we should terminate the lookup. This fixes, e.g., hangs in audit_logs(limit=999999), and will reduce the number of fetch calls for any case where limit is greater than the number of results. (Prior, would just kinda loop calling audit-logs)
* simplify AuditLogIterator orderingkhazhyk2019-04-072-24/+21
| | | | | | rename reverse to oldest_first and remove cases where messages would be ordered differently from the order we fetch audit log entries, similar to HistoryIterator
* simplify HistoryIterator message orderingkhazhyk2019-04-074-32/+29
| | | | | | | | | | | | | | | | | | | | rename reverse -> oldest_first, which is more obvious what it does. Then, honor it entirely - if you specify no `after` endpoint, we default to the beginning of message history, similar to how `before` defaults to the end of message history. This is a breaking change, and will change the behavior of any iterator that previously would have been returning messages in a weird order for limits over 100 `for msg in history(reversed=True, limit=300)` would return the newest 300 messages, in a messed up order (100..0, 200..100, 300..200). `for msg in history(oldest_first=True, limit=300)` will now return the oldest 300 messages in order. And so on. `for msg in history(after=msg)` is unchanged, this previously would return the oldest 100 messages after `msg`, oldest->newest order, and still will.
* allow passing 0 for logs_from parameterskhazhyk2019-04-071-3/+3
|
* Client.event raises TypeError instead of ClientException.Rapptz2019-04-071-2/+7
|
* [commands] Raise TypeError instead of ClientException in some placesRapptz2019-04-072-18/+18
| | | | | | | Certain decorators and functions expect coroutines and raise an exception when this is not met. Change these to raise the appropriate TypeError since they can't actually be handled by the user gracefully anyway.
* Don't raise an exception during the signal handlers.Rapptz2019-04-071-10/+7
|
* Forgot to escape backticks.Rapptz2019-04-071-1/+1
|
* Add ignore_links and as_needed options to utils.escape_markdown.Rapptz2019-04-071-5/+30
| | | | | | This allows for URLs to be left alone since they can include markdown characters and allows for total escaping of all markdown characters by default to prevent some form of data manipulation.
* Fix regex substitution in utils.escape_mentionsRapptz2019-04-061-1/+1
|
* [commands] Remove extraneous `or`Rapptz2019-04-061-1/+1
|
* Add note about escape_markdown in Message.clean_contentRapptz2019-04-061-0/+6
| | | | Fix #1911
* [commands] Fix HelpCommand.invoked_with when used in events.Rapptz2019-04-061-2/+3
|
* Simplify bot loop cleanup routine.Rapptz2019-04-061-46/+57
| | | | Attempted solution for #2040
* Fix copy paste error in ClientUser.edit_settingsRapptz2019-04-061-2/+2
|
* Use explicit __eq__ call to be consistent with other methods.Rapptz2019-04-061-2/+2
|
* Fix Attachment.save wording nit.Rapptz2019-04-061-3/+4
|
* Add helpers to escape markdown and mentions from text.Rapptz2019-04-063-6/+47
| | | | Fixes #1673
* [commands] Disallow bot_ or cog_ commands or listeners in cogs.Rapptz2019-04-061-1/+5
|
* Make abc.GuildChannel.overwrites return a dictionaryRapptz2019-04-061-7/+6
| | | | Fix #2016
* [commands] Raise BadArgument in ColourConverter when using from_hsv/rgbRapptz2019-04-061-2/+3
| | | | Fixes #2043
* Only escape characters as necessary in clean_contentCapnS2019-04-061-10/+5
| | | | Fixes #1885
* Add fetch custom emoji, all custom emojis; Add user property to EmojiNCPlayz2019-04-063-1/+57
|
* Redesign bulk delete eventsVexs2019-04-063-19/+47
| | | | | | | | | Change `parse_message_delete_bulk` to not dispatch individual `message_delete` events, and instead `bulk_message_delete`. Also make `raw_bulk_message` delete and `raw_message_delete` have message objects attached. Fixes #1807
* Redesign asset retrieval in the library.NCPlayz2019-04-0616-155/+332
| | | | | | | | | | | Most assets now return a new class named `Asset`. This allows for the assets to be consistently saved via a `save` method instead of special casing for `Attachment`. `AppInfo` is no longer a namedtuple it is a fully documented dataclass, as well as having the state attached to it. Fixes #1997
* Propagate Cloudflare 429 HTML text.Rapptz2019-03-311-0/+4
|
* Added functionality to edit user settingsCapnS2019-03-283-1/+127
| | | | | | | | | | | | Changing docs to fit other parts of the lib Co-Authored-By: CapnS <[email protected]> Removing Type Checking Made all of Rapptz's suggested changes Removing imports that are no longer needed