3644 Commits

Author SHA1 Message Date
Rapptz
0d19273844 Client.accept_invite and Client.register now accept invite IDs. 2015-11-26 18:43:26 -05:00
Rapptz
7f94f75223 Handle TYPING_START event. 2015-11-24 21:11:53 -05:00
Rapptz
2e03927f2c Merge send_raw_file and send_file 2015-11-21 01:31:51 -05:00
Rapptz
57312d96f7 Fix annoying lack of parenthesis at end of HTTPException 2015-11-20 23:35:23 -05:00
Rapptz
5ca04ea08f Use try-except instead of checking for membership.
Basically, a lot of the checks revolving "if x in y" could be written
more efficiently by doing the task anyway and ignoring the exception
a la the EAFP guideline.
2015-11-20 17:39:51 -05:00
Red_M
36b145aee2 Allow sending raw file objects in memory with client.send_raw_file 2015-11-20 15:10:05 +10:00
Khazhismel
52d3457443 Add send_typing command to allow sending typing updates. 2015-11-19 23:16:47 -05:00
Azza
0b4706699f fixed voice_members not updating when changing channels 2015-11-19 23:15:27 -05:00
Rapptz
acbbaa39ad Add Message.channel_mentions 2015-11-19 23:10:15 -05:00
Rapptz
da37ff16c1 Add get_raw_[channel_]mentions to Message 2015-11-19 23:01:43 -05:00
Rapptz
e88c194e9a Fix is_private check in mentions array handling. 2015-11-19 22:21:15 -05:00
Rapptz
692a6a3bc6 Fix ordering issue with Message.server 2015-11-18 20:04:27 -05:00
Rapptz
75658f46a2 Message.mentions now returns a list of Member instead of User 2015-11-16 21:18:30 -05:00
Rapptz
cc59654216 Add Client.get_all_channels and Client.get_all_members 2015-11-16 21:02:23 -05:00
Rapptz
d1a7d2cad2 Documentation fixes for Client.logs_from 2015-11-16 20:52:56 -05:00
Khazhismel
fcc540ec44 Add before and after params to logs_from. 2015-11-16 19:06:14 -05:00
Rapptz
3e072db5d0 Fix Client.unban parameter name (name -> user) 2015-11-16 18:20:44 -05:00
Rapptz
52c1d134ba Clean-up guild_delete. 2015-11-16 18:19:52 -05:00
Rapptz
5ecaf1df4c Make unavailable default to None. 2015-11-16 18:15:34 -05:00
Rapptz
3d70966021 Attempt to fix unavailable guilds again 2015-11-16 17:23:05 -05:00
Hla
83a5449fc5 icon_url and get_default_channel in Server 2015-11-16 17:07:51 -05:00
Rapptz
85ac03a081 Role.is_everyone actually uses the proper check. 2015-11-09 00:33:15 -05:00
Rapptz
054cf2e1e0 Channel.permissions_for now correctly handles everyone overwrites. 2015-11-09 00:32:38 -05:00
Rapptz
7a4fab5566 Change iterable to an argument list in role related documentation. 2015-11-07 18:08:50 -05:00
Rapptz
ad6fbbfe43 Fix Client.create_role 2015-11-07 16:28:37 -05:00
Rapptz
7161723034 Change on_server_create/delete to on_server_join/remove. 2015-11-01 15:30:20 -05:00
Rapptz
822e54200d Document Client.login raising exceptions. 2015-10-27 23:02:50 -04:00
Rapptz
9b2a78a031 Add InvalidArgument exception and change exceptions thrown. 2015-10-27 21:25:21 -04:00
Rapptz
027b7b33c9 All HTTP requests now throw HTTPException. 2015-10-27 21:19:32 -04:00
Rapptz
cc397d6e6a Document cases where GatewayNotFound is thrown. 2015-10-27 19:11:56 -04:00
Rapptz
3266d1ed10 GatewayNotFound now has a default message. 2015-10-27 19:08:29 -04:00
Rapptz
d14bffcd96 Rename InvaldiDestination to a generic ClientException. 2015-10-27 19:02:12 -04:00
Rapptz
61e41ec3b9 All exceptions now derive from DiscordException. 2015-10-27 18:09:26 -04:00
Rapptz
6ae6bd8e6d Remove InvalidEventName exception due to it being unused 2015-10-27 18:03:51 -04:00
Rapptz
f770fc1c67 Add discord.Object to the documentation. 2015-10-27 17:59:23 -04:00
Rapptz
dd2e08e185 Add support for passing in Object to methods. 2015-10-27 17:39:51 -04:00
Rapptz
c49ff36a7b Make Message.channel an Object if something goes wrong.
Fixes #21
2015-10-27 17:21:08 -04:00
Rapptz
9f12067b3d Add discord.Object class for generic pass-by-ID. 2015-10-27 17:04:50 -04:00
Rapptz
a0073c734e Split data classes into more files. 2015-10-27 16:23:20 -04:00
Rapptz
616f2bb4e9 Remove the name from logging.
Fixes #28.
2015-10-25 23:17:02 -04:00
Rapptz
60dfd04439 Check if member is in list for GUILD_MEMBER_REMOVE. 2015-10-25 23:08:06 -04:00
Rapptz
2938d0cfcf Don't update member.roles in add/remove_roles. 2015-10-24 23:36:12 -04:00
Rapptz
5efddaf35d Support unavailable servers. 2015-10-24 05:10:58 -04:00
Rapptz
72674b4c2d Add Channel.mention to mention a channel. 2015-10-23 21:04:52 -04:00
Rapptz
1a13f9ad30 Add Message.server attribute shortcut. 2015-10-23 17:41:28 -04:00
Rapptz
8552e24945 Version bump to v0.8.0 2015-10-22 22:21:52 -04:00
Rapptz
f018895f2c Fix documentation warnings. 2015-10-22 22:20:36 -04:00
Rapptz
6981c51e0a Change default parameter to None for Client.set_channel_permissions 2015-10-22 22:20:35 -04:00
Rapptz
6f76a5ab33 Add Client.delete_channel_permissions
Fixes #18
2015-10-22 22:20:35 -04:00
Rapptz
ec5b7bb493 Add Client.set_channel_permissions 2015-10-22 22:20:34 -04:00