aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Fix permission resolution in Channel.permissions_forRapptz2015-10-221-13/+15
|
* Print to stderr in on_errorHornwitser2015-10-223-17/+14
| | | | | | | | | | | | | | | Apparently the clever hack for logging in on_error was not so clever after all. If logging isn't configured, by the logging modules definition of not configured, which is root logger not having an Handlers attached, it will call logging.basicConfig(). Which messes up setups that define handlers for other loggers than the root logger. Going directly to the root logger rather than using the broken convenience methods for logger is not an option either, as logger before Python 3.2 does not have lastResort on the root logger, and prints an error when invoked without any handlers. Resolve by printing tracebacks to stderr by default in on_error.
* Add instructions for installing development version.Rapptz2015-10-211-0/+6
|
* Documentation fixes for Message.Rapptz2015-10-211-4/+6
|
* Add note for edit_role about custom RGB colours.Rapptz2015-10-211-0/+7
|
* Better detection for the everyone role. Fixes #23.Rapptz2015-10-212-5/+8
|
* Add Client.replace_rolesRapptz2015-10-211-2/+33
|
* Add Client.add_roles and Client.remove_rolesRapptz2015-10-211-0/+59
|
* Log to root logger by default in on_errorHornwitser2015-10-212-9/+15
| | | | | | | | | | | | | | Change the default implementation of on_error to log to the root logger instead of discord.client and clarify that the exception is being ignored. This ensures that a message will be output to standard error in case the logging module has not been configured. Also removes the argument printing for the default on_error, this is due to them often being too long, that they could cause another exception to be thrown, and because it sometimes causes sensitive information to be output such as Discord tokens and session ids. It was also possible for the length to get in the megabyte range with exceptions thrown by on_socket_raw_receive in READY events.
* Fix Client.create_invite invalid method call issue.Rapptz2015-10-201-1/+1
|
* Change default limit for Client.logs_from to 100.Rapptz2015-10-191-1/+1
|
* Properly set requirements of ws4py and requests.Rapptz2015-10-183-6/+6
|
* Add Client.create_role to create a server-wide role.Rapptz2015-10-171-0/+22
|
* Change Client.edit_role to be less stateful.Rapptz2015-10-171-18/+23
|
* Document Permissions constants and set default permissions to 0.Rapptz2015-10-171-1/+29
|
* Add Channel.permissions_for and PrivateChannel.permissions_for.Rapptz2015-10-172-14/+128
| | | | | | These functions handle permission resolution for a specific member. Aids with #18.
* Fix bug with member voice state update.Rapptz2015-10-171-3/+4
|
* Better detection for the @everyone role.Rapptz2015-10-172-3/+8
|
* Add Role.managed property.Rapptz2015-10-161-0/+5
|
* Only remove if the user is actually in the voice channel.Rapptz2015-10-161-1/+1
|
* on_socket_response now handles non-op 0 websocket messages.Rapptz2015-10-161-5/+8
|
* Use compact encoding for json on websocketHornwitser2015-10-161-2/+2
| | | | | Remove extra whitespace from json encoding used when sending messages on the websocket.
* Add events for sniffing the WebSocket dataHornwitser2015-10-162-0/+42
| | | | | | | Add on_socket_raw_receive and on_socket_raw_send events for sniffing the data being received and sent on the websocket. Useful for debugging and logging websocket messages received and sent on the link to Discord's servers.
* Add Channel.voice_membersRapptz2015-10-162-0/+14
| | | | | This allows you to see which members are currently in a voice channel.
* Separate colour tuple into its own class.Rapptz2015-10-165-53/+220
| | | | | Also enumerate all the constant colours that Discord currently supports.
* Handle VOICE_STATE_UPDATE websocket events.Rapptz2015-10-153-3/+54
| | | | | | | | | | | This adds a lot of new attributes into the Member class such as giving a voice_channel that the user is currently connected to. Initially there was a plan to have a voice_members attribute in the Channel class but this proved to be difficult when it came to actually removing users from the voice channel as the response would return channel_id as null. Fixes #16.
* Handle GUILD_ROLE_UPDATE websocket events.Rapptz2015-10-153-2/+20
|
* Handle GUILD_ROLE_DELETE websocket events.Rapptz2015-10-152-4/+13
|
* Handle GUILD_ROLE_CREATE websocket events.Rapptz2015-10-152-1/+15
|
* Check if the server is valid during GUILD_MEMBER_REMOVE.Rapptz2015-10-151-4/+5
|
* Fixed get_default_role in Server attempting to access the wrong roles.Rasmus Karlsson2015-10-151-1/+1
|
* Add Client.change_status.Rapptz2015-10-141-0/+30
|
* Message.author is now either Member or User.Rapptz2015-10-141-4/+15
| | | | Closes #11.
* Version bump to v0.7.0v0.7.0Rapptz2015-10-131-2/+2
|
* Client.send_file now properly closes the file-object.Rapptz2015-10-131-39/+33
|
* Documentation cleanup.Rapptz2015-10-132-10/+38
| | | | | | | | Documented the new way of listening to events as well the new events that could be listened thanks to the recent refactor. Also uses the versionadded directive to document when something new is added to the library.
* Add role colour and hoisting to edit_role.Rapptz2015-10-131-1/+3
|
* Parse role colour and other new role attributes.Rapptz2015-10-131-0/+26
| | | | | New attributes include hoist, position, and of course colour. An alias is in place for British and American spellings (i.e. color).
* Client.send_message can now accept a string ID as the destination.Rapptz2015-10-131-2/+5
|
* Pass kwargs to all constructors for future proofing.Rapptz2015-10-132-5/+5
|
* Added send_file method.littleyoshi42015-10-111-0/+40
|
* Client.register now takes an invite URL or class.Rapptz2015-10-111-10/+13
|
* edit_profile now returns True or False depending on success.Rapptz2015-10-111-0/+3
|
* Remove get_channel from __getattr__ in Client.Rapptz2015-10-111-2/+1
|
* Use v3 of the Discord API.Rapptz2015-10-111-1/+1
|
* Clarify logging and on_error documentationHornwitser2015-10-062-17/+47
| | | | | | | | Change the description of on_error to reflect that exceptions are logged and not output by default. Add a note about not configuring logging causing exceptions to be silently ignored in handlers in the API. And add some more explanations and a simpler configuration example to the logging description.
* Set up logging module in examplesHornwitser2015-10-064-0/+16
| | | | | | | | Without setting up the logging module, a god number of error conditions and warnings will never be output by the library. This is a common pitfall to forget and it's not documented good enough the consequences of not setting up the logging module when developing applications with this library.
* Add handling of login failure in examplesHornwitser2015-10-064-0/+16
| | | | | | Check and handle login failure in the examples provided for using this library. This is a common error condition that should be handled by any script using this library.
* Make event based handlers first classHornwitser2015-10-061-33/+1
| | | | | | Change Client.event decorator to assign the event handler function to the instance it self and levarage dispatch to handle calling these event. Remove old _invoke_event method.
* Change behaviour of on_errorHornwitser2015-10-062-15/+24
| | | | | | | | | Change how the old style on_error event is called to match the new style on_error event. Both are now called in case an exception is raised in an user defined event handler, and will by default print the arguments of the event tha raised the exception and the traceback for the exception. In addition, overridding the on_error handler supresses this behaviour.