Commit Graph

  • 2e03927f2c Merge send_raw_file and send_file Rapptz 2015-11-21 01:31:51 -05:00
  • 57312d96f7 Fix annoying lack of parenthesis at end of HTTPException Rapptz 2015-11-20 23:35:23 -05:00
  • 5ca04ea08f Use try-except instead of checking for membership. Rapptz 2015-11-20 17:39:19 -05:00
  • 36b145aee2 Allow sending raw file objects in memory with client.send_raw_file Red_M 2015-11-20 15:10:05 +10:00
  • 52d3457443 Add send_typing command to allow sending typing updates. Khazhismel 2015-11-19 10:18:27 -05:00
  • 0b4706699f fixed voice_members not updating when changing channels Azza 2015-11-17 15:40:25 +11:00
  • acbbaa39ad Add Message.channel_mentions Rapptz 2015-11-19 23:10:15 -05:00
  • da37ff16c1 Add get_raw_[channel_]mentions to Message Rapptz 2015-11-19 23:01:43 -05:00
  • e88c194e9a Fix is_private check in mentions array handling. Rapptz 2015-11-19 22:20:07 -05:00
  • 692a6a3bc6 Fix ordering issue with Message.server Rapptz 2015-11-18 20:04:27 -05:00
  • 75658f46a2 Message.mentions now returns a list of Member instead of User Rapptz 2015-11-16 21:18:30 -05:00
  • cc59654216 Add Client.get_all_channels and Client.get_all_members Rapptz 2015-11-16 21:00:39 -05:00
  • d1a7d2cad2 Documentation fixes for Client.logs_from Rapptz 2015-11-16 20:52:56 -05:00
  • fcc540ec44 Add before and after params to logs_from. Khazhismel 2015-11-16 18:17:38 -05:00
  • 3e072db5d0 Fix Client.unban parameter name (name -> user) Rapptz 2015-11-16 18:20:44 -05:00
  • 52c1d134ba Clean-up guild_delete. Rapptz 2015-11-16 18:19:52 -05:00
  • 5ecaf1df4c Make unavailable default to None. Rapptz 2015-11-16 18:15:34 -05:00
  • 3d70966021 Attempt to fix unavailable guilds again Rapptz 2015-11-16 17:23:05 -05:00
  • 83a5449fc5 icon_url and get_default_channel in Server Hla 2015-11-15 17:18:32 +02:00
  • 85ac03a081 Role.is_everyone actually uses the proper check. Rapptz 2015-11-09 00:33:15 -05:00
  • 054cf2e1e0 Channel.permissions_for now correctly handles everyone overwrites. Rapptz 2015-11-09 00:32:38 -05:00
  • 7a4fab5566 Change iterable to an argument list in role related documentation. Rapptz 2015-11-07 18:08:50 -05:00
  • ad6fbbfe43 Fix Client.create_role Rapptz 2015-11-07 16:27:58 -05:00
  • 7161723034 Change on_server_create/delete to on_server_join/remove. Rapptz 2015-11-01 15:30:20 -05:00
  • 822e54200d Document Client.login raising exceptions. Rapptz 2015-10-27 23:02:50 -04:00
  • 9b2a78a031 Add InvalidArgument exception and change exceptions thrown. Rapptz 2015-10-27 21:25:21 -04:00
  • 027b7b33c9 All HTTP requests now throw HTTPException. Rapptz 2015-10-27 21:19:32 -04:00
  • cc397d6e6a Document cases where GatewayNotFound is thrown. Rapptz 2015-10-27 19:11:56 -04:00
  • 3266d1ed10 GatewayNotFound now has a default message. Rapptz 2015-10-27 19:08:29 -04:00
  • d14bffcd96 Rename InvaldiDestination to a generic ClientException. Rapptz 2015-10-27 18:45:45 -04:00
  • 61e41ec3b9 All exceptions now derive from DiscordException. Rapptz 2015-10-27 18:09:26 -04:00
  • 6ae6bd8e6d Remove InvalidEventName exception due to it being unused Rapptz 2015-10-27 18:03:51 -04:00
  • f770fc1c67 Add discord.Object to the documentation. Rapptz 2015-10-27 17:59:23 -04:00
  • dd2e08e185 Add support for passing in Object to methods. Rapptz 2015-10-27 17:38:36 -04:00
  • c49ff36a7b Make Message.channel an Object if something goes wrong. Rapptz 2015-10-27 17:21:08 -04:00
  • 9f12067b3d Add discord.Object class for generic pass-by-ID. Rapptz 2015-10-27 17:04:50 -04:00
  • a0073c734e Split data classes into more files. Rapptz 2015-10-27 16:23:20 -04:00
  • 616f2bb4e9 Remove the name from logging. Rapptz 2015-10-25 23:17:02 -04:00
  • 60dfd04439 Check if member is in list for GUILD_MEMBER_REMOVE. Rapptz 2015-10-25 23:08:06 -04:00
  • 2938d0cfcf Don't update member.roles in add/remove_roles. Rapptz 2015-10-24 23:36:12 -04:00
  • 5efddaf35d Support unavailable servers. Rapptz 2015-10-24 05:10:58 -04:00
  • 72674b4c2d Add Channel.mention to mention a channel. Rapptz 2015-10-23 21:04:52 -04:00
  • 1a13f9ad30 Add Message.server attribute shortcut. Rapptz 2015-10-23 17:41:28 -04:00
  • 8552e24945 Version bump to v0.8.0 Rapptz 2015-10-22 22:21:52 -04:00
  • f018895f2c Fix documentation warnings. Rapptz 2015-10-22 22:12:53 -04:00
  • 6981c51e0a Change default parameter to None for Client.set_channel_permissions Rapptz 2015-10-22 22:11:13 -04:00
  • 6f76a5ab33 Add Client.delete_channel_permissions Rapptz 2015-10-22 21:41:09 -04:00
  • ec5b7bb493 Add Client.set_channel_permissions Rapptz 2015-10-22 21:37:44 -04:00
  • b94dffaf87 Change Permissions constants to be class method factories instead. Rapptz 2015-10-22 21:24:00 -04:00
  • 8b8312608c Change Colour constants to be class method factories instead. Rapptz 2015-10-22 20:56:51 -04:00
  • 9188184e85 Fix permission resolution in Channel.permissions_for Rapptz 2015-10-22 18:17:15 -04:00
  • 320cd39b6a Print to stderr in on_error Hornwitser 2015-10-22 21:23:36 +02:00
  • b9c40955ab Add instructions for installing development version. Rapptz 2015-10-21 21:09:50 -04:00
  • c8535f714e Documentation fixes for Message. Rapptz 2015-10-21 21:09:01 -04:00
  • ce9a8ff75b Add note for edit_role about custom RGB colours. Rapptz 2015-10-21 20:38:28 -04:00
  • d2741ca38a Better detection for the everyone role. Fixes #23. Rapptz 2015-10-21 20:27:08 -04:00
  • edd3d47220 Add Client.replace_roles Rapptz 2015-10-21 19:46:33 -04:00
  • 6bb6a0a0a7 Add Client.add_roles and Client.remove_roles Rapptz 2015-10-21 18:50:38 -04:00
  • 9ab1d041d4 Log to root logger by default in on_error Hornwitser 2015-10-20 18:11:52 +02:00
  • 77253d7717 Fix Client.create_invite invalid method call issue. Rapptz 2015-10-20 15:59:45 -04:00
  • 0e106cd8c4 Change default limit for Client.logs_from to 100. Rapptz 2015-10-19 08:31:21 -04:00
  • 7ff2cd008f Properly set requirements of ws4py and requests. Rapptz 2015-10-18 23:34:27 -04:00
  • e2af5d545a Add Client.create_role to create a server-wide role. Rapptz 2015-10-17 17:54:16 -04:00
  • 84e9300a3d Change Client.edit_role to be less stateful. Rapptz 2015-10-17 07:26:58 -04:00
  • 8fbaa29e9c Document Permissions constants and set default permissions to 0. Rapptz 2015-10-17 07:17:40 -04:00
  • 61f62c1468 Add Channel.permissions_for and PrivateChannel.permissions_for. Rapptz 2015-10-17 06:21:51 -04:00
  • 2813652995 Fix bug with member voice state update. Rapptz 2015-10-17 05:27:10 -04:00
  • a9fd4fc4e3 Better detection for the @everyone role. Rapptz 2015-10-17 04:13:15 -04:00
  • ba978cc988 Add Role.managed property. Rapptz 2015-10-16 23:20:53 -04:00
  • c4f7664bd9 Only remove if the user is actually in the voice channel. Rapptz 2015-10-16 20:11:29 -04:00
  • 1080941e5e on_socket_response now handles non-op 0 websocket messages. Rapptz 2015-10-16 18:49:55 -04:00
  • 023e0eb1d5 Use compact encoding for json on websocket Hornwitser 2015-10-16 14:16:17 +02:00
  • 07adb330db Add events for sniffing the WebSocket data Hornwitser 2015-10-16 14:00:39 +02:00
  • be14fd1dcc Add Channel.voice_members Rapptz 2015-10-16 15:52:11 -04:00
  • 411b477a02 Separate colour tuple into its own class. Rapptz 2015-10-16 07:13:24 -04:00
  • ab2512785b Handle VOICE_STATE_UPDATE websocket events. Rapptz 2015-10-15 01:02:15 -04:00
  • 4ff7d22edd Handle GUILD_ROLE_UPDATE websocket events. Rapptz 2015-10-14 22:54:18 -04:00
  • 16a20e5f2f Handle GUILD_ROLE_DELETE websocket events. Rapptz 2015-10-14 22:36:35 -04:00
  • 9235a34916 Handle GUILD_ROLE_CREATE websocket events. Rapptz 2015-10-14 21:09:31 -04:00
  • 4ec052a35c Check if the server is valid during GUILD_MEMBER_REMOVE. Rapptz 2015-10-14 21:03:29 -04:00
  • 75670fa0a2 Fixed get_default_role in Server attempting to access the wrong roles. Rasmus Karlsson 2015-10-14 17:41:21 +00:00
  • a130706f23 Add Client.change_status. Rapptz 2015-10-14 18:54:45 -04:00
  • 15b83b2743 Message.author is now either Member or User. Rapptz 2015-10-14 05:58:04 -04:00
  • e24806660d Version bump to v0.7.0 Rapptz 2015-10-13 06:28:39 -04:00
  • 0b27044252 Client.send_file now properly closes the file-object. Rapptz 2015-10-13 06:16:29 -04:00
  • 1f37fe72f2 Documentation cleanup. Rapptz 2015-10-13 05:38:38 -04:00
  • c64420f9d3 Add role colour and hoisting to edit_role. Rapptz 2015-10-13 05:13:29 -04:00
  • 608384dd4f Parse role colour and other new role attributes. Rapptz 2015-10-13 05:06:01 -04:00
  • 8b03918c3d Client.send_message can now accept a string ID as the destination. Rapptz 2015-10-13 04:34:14 -04:00
  • 2559051e06 Pass kwargs to all constructors for future proofing. Rapptz 2015-10-13 04:33:18 -04:00
  • 1b6fe0466d Added send_file method. littleyoshi4 2015-10-11 21:51:10 -05:00
  • 6074fe0783 Client.register now takes an invite URL or class. Rapptz 2015-10-11 07:28:55 -04:00
  • 03d477edd8 edit_profile now returns True or False depending on success. Rapptz 2015-10-11 06:42:11 -04:00
  • 66c39b6151 Remove get_channel from __getattr__ in Client. Rapptz 2015-10-11 05:35:10 -04:00
  • ceb9eb07d8 Use v3 of the Discord API. Rapptz 2015-10-11 05:15:57 -04:00
  • e258c9b893 Clarify logging and on_error documentation Hornwitser 2015-09-30 21:00:23 +02:00
  • ea2f35fb24 Set up logging module in examples Hornwitser 2015-09-30 20:02:37 +02:00
  • a98324fbf8 Add handling of login failure in examples Hornwitser 2015-09-30 19:58:19 +02:00
  • 68c3fde089 Make event based handlers first class Hornwitser 2015-09-29 21:36:01 +02:00
  • 74a06e0b79 Change behaviour of on_error Hornwitser 2015-09-29 09:19:33 +02:00