aboutsummaryrefslogtreecommitdiff
path: root/discord/client.py
Commit message (Collapse)AuthorAgeFilesLines
* Ensure the auth cache file is not world readable.Nelson Minar2016-03-021-1/+1
|
* Switch URLs from Client.delete_server and Client.leave_server.Rapptz2016-02-231-2/+2
|
* Add Client.delete_server.Rapptz2016-02-231-2/+29
|
* Client.send_file can now send content along with the message.Rapptz2016-02-181-6/+16
| | | | | | There is a breaking change here. We have to change the filename parameter to be a keyword only argument so there are fewer errors and surprises.
* Fix NameError issue in Client.send_file.Rapptz2016-02-171-4/+2
|
* Switch to using ClientSession objects for aiohttp v0.21Rapptz2016-02-151-42/+42
|
* Fix case when no chunks are necessary.Rapptz2016-02-141-1/+4
|
* Remove request_offline option.Rapptz2016-02-141-12/+3
|
* Offline members are now added by default automatically.Rapptz2016-02-141-7/+80
| | | | | This commit adds support for GUILD_MEMBERS_CHUNK which had to be done due to forced large_threshold requirements in the library.
* Update member references when status changes.Rapptz2016-01-301-3/+7
|
* Force content-type for file uploads.Rapptz2016-01-291-2/+2
|
* Add and remove some of the on_socket_* events.Rapptz2016-01-251-5/+12
| | | | | | on_socket_raw_receive and on_socket_raw_send were added back in an odd way. The rest of them such as on_socket_closed, on_socket_opened, and on_socket_receive were removed.
* Support changing owners in Client.edit_server.Rapptz2016-01-221-1/+11
|
* Change docstring for Client.send_message to point to a valid property.Rapptz2016-01-181-1/+1
|
* Update voice channel if we move to different channels.Rapptz2016-01-171-0/+4
|
* Fix IndexError in Client.move_member.Rapptz2016-01-151-1/+1
|
* Client.invites_from now returns a list instead of a generator.Rapptz2016-01-141-13/+12
| | | | | The old syntax is a bit awkward to use and has little benefit in this case. This is a breaking change.
* Add support for `async for` in Client.logs_from.Rapptz2016-01-141-33/+47
| | | | | | | | | | This is a breaking change. Code will still work in Python 3.4 as-is but if you use Python 3.5 you will have to change your code to the new `async for` syntax as the older version is not supported in 3.5. On the other hand, this comes with performance improvements if you use Python 3.5 as it will lazily load 100 message chunks on an as needed basis rather than loading all messages in one go.
* Fix Client.remove_roles to actually remove roles.Rapptz2016-01-101-2/+5
|
* Change order of documentation by source declaration.Rapptz2016-01-081-178/+178
|
* Document the breaking change with the new dictionary storage change.Rapptz2016-01-081-2/+2
| | | | | Since the only things dict views support are iteration we should advise people who want the old behaviour to change it to a list.
* Document how Client.run should be the last function to call.Rapptz2016-01-081-0/+7
|
* document public get_ methods and make others privateSteven Berler2016-01-081-3/+7
|
* performance improvementsSteven Berler2016-01-081-6/+5
| | | | | | | | | | | | | | | | | | | | | Replaced server member lists, channel lists, and private channel lists with dicts. This allows O(1) lookups and removes (previously it would be an O(N) operation to lookup or remove). I did pretty extensive testing and benchmarking to compare the performance of using lists vs using dicts. Iterating through lists to find an item is only faster in the average case for extremely small lists (less than 3 items). For 100 items, using a dict is about 10 times faster on average (and about 100 times faster for 1000 items). The overhead in dicts is in memory usage and initial creation time. Creating and populating a dict is about 2 to 3 times slower than creating and appending items to a list. However this cost is still tiny. For 1000 items this equates to about a 70 microsecond difference (on an i7 CPU) for populating the entire dict. The memory overhead for a dict (compared to a list) is about 25-60 KB per 1000 items (can vary depending on dict resizing). Originally I wanted to use OrderedDicts to presereve order, but in my testing OrderedDicts have about 6x the memory overhead compared to normal dicts.
* Add Message.nonce attribute.Rapptz2016-01-071-1/+3
|
* Documentation fixes to quiet Sphinx warnings.Rapptz2016-01-071-3/+3
|
* Update license of files to 2016.Rapptz2016-01-041-1/+1
|
* Revert "Use super() in classes that could be subclassed."Rapptz2016-01-041-1/+0
| | | | This reverts commit 948f565b430d80f782d0b7c264cc0b27aa1ec0b2.
* Use super() in classes that could be subclassed.Rapptz2016-01-041-0/+1
|
* Change permissions to remove the can_ prefix.Rapptz2016-01-031-2/+2
|
* Remove print statement from bytes check.Rapptz2016-01-011-1/+0
|
* Implement compressed READYRapptz2016-01-011-1/+10
|
* Actually send the payload data in Client.create_serverRapptz2015-12-311-1/+12
|
* Fix issue with add_roles and friends not working.Rapptz2015-12-301-2/+2
| | | | | Previously it stated that Role object is not serializable due to passing in Role objects rather than their IDs.
* Add logs to help debug some voice data.Rapptz2015-12-301-0/+2
|
* Maintain order in role related functions.Rapptz2015-12-301-9/+16
|
* Changed cache check to be the login endpoint itself.Rapptz2015-12-291-19/+5
|
* Fix indentation errorRapptz2015-12-291-1/+1
|
* Add ability to move members to a different voice channel.Rapptz2015-12-291-0/+43
|
* Remove Client.voice_channelRapptz2015-12-291-4/+3
|
* Client.join_voice_channel now accepts an Object.Rapptz2015-12-291-0/+3
| | | | Fixes #62.
* Simplify parser event check with hasattr rather than tuples.Rapptz2015-12-291-9/+3
|
* Add missing ` in documentation for create_serverRapptz2015-12-291-1/+1
|
* ConnectionState is now constructed in Client.__init__.Rapptz2015-12-291-12/+10
| | | | | | This should reduce the amount of checks for None if someone doesn't want a websocket connection. The connection state is instead cleared rather than reconstructed.
* Raise ClientException if an unexpected websocket close happensRapptz2015-12-291-1/+5
|
* Client.create_invite now works without a websocket connectionRapptz2015-12-291-18/+18
|
* Client.get_invite now works without a websocket connectionRapptz2015-12-291-1/+4
|
* Client.email is now set when using the cacheRapptz2015-12-281-0/+1
|
* Add missing argument in _rate_limit_helperKhazhismel2015-12-261-1/+1
|
* Added missing Member import to client.pySamSchlegel2015-12-241-0/+1
|