aboutsummaryrefslogtreecommitdiff
path: root/discord
Commit message (Collapse)AuthorAgeFilesLines
* Fix documentation warnings.Rapptz2015-10-221-6/+6
|
* Change default parameter to None for Client.set_channel_permissionsRapptz2015-10-221-1/+4
|
* Add Client.delete_channel_permissionsRapptz2015-10-221-0/+20
| | | | Fixes #18
* Add Client.set_channel_permissionsRapptz2015-10-221-0/+47
|
* Change Permissions constants to be class method factories instead.Rapptz2015-10-222-3/+47
|
* Change Colour constants to be class method factories instead.Rapptz2015-10-221-95/+109
|
* Fix permission resolution in Channel.permissions_forRapptz2015-10-221-13/+15
|
* Print to stderr in on_errorHornwitser2015-10-221-1/+5
| | | | | | | | | | | | | | | 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.
* 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-211-2/+1
| | | | | | | | | | | | | | 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
|
* 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-161-0/+5
| | | | | | | 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-164-53/+217
| | | | | Also enumerate all the constant colours that Discord currently supports.
* Handle VOICE_STATE_UPDATE websocket events.Rapptz2015-10-152-3/+42
| | | | | | | | | | | 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-152-2/+14
|
* Handle GUILD_ROLE_DELETE websocket events.Rapptz2015-10-151-1/+9
|
* Handle GUILD_ROLE_CREATE websocket events.Rapptz2015-10-151-1/+8
|
* 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
|
* 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
|
* 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-061-3/+2
| | | | | | | | | 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.