72 Commits

Author SHA1 Message Date
Rapptz
2813652995 Fix bug with member voice state update. 2015-10-17 05:27:10 -04:00
Rapptz
a9fd4fc4e3 Better detection for the @everyone role. 2015-10-17 04:13:15 -04:00
Rapptz
c4f7664bd9 Only remove if the user is actually in the voice channel. 2015-10-16 20:11:29 -04:00
Rapptz
be14fd1dcc Add Channel.voice_members
This allows you to see which members are currently in a voice
channel.
2015-10-16 15:52:11 -04:00
Rapptz
411b477a02 Separate colour tuple into its own class.
Also enumerate all the constant colours that Discord currently
supports.
2015-10-16 07:48:50 -04:00
Rapptz
ab2512785b Handle VOICE_STATE_UPDATE websocket events.
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.
2015-10-15 01:37:55 -04:00
Rapptz
4ff7d22edd Handle GUILD_ROLE_UPDATE websocket events. 2015-10-15 01:37:55 -04:00
Rasmus Karlsson
75670fa0a2 Fixed get_default_role in Server attempting to access the wrong roles. 2015-10-15 01:37:52 -04:00
Rapptz
608384dd4f Parse role colour and other new role attributes.
New attributes include hoist, position, and of course colour. An
alias is in place for British and American spellings (i.e. color).
2015-10-13 05:39:58 -04:00
Rapptz
2559051e06 Pass kwargs to all constructors for future proofing. 2015-10-13 05:39:57 -04:00
Rapptz
d93c18b28e Add get_default_role for servers to get the 'everyone' role. 2015-09-07 18:40:23 -04:00
Rapptz
568c2a773b Remove owner_id from Server and use owner instead.
owner will be the actual Member who owns the server.
2015-09-04 23:56:00 -04:00
Rapptz
b4e6591c9d Refactor parse_time into its own utils file. 2015-09-04 22:00:22 -04:00
Rapptz
b00ad4ad79 Use kwargs if the number of arguments needed is too many. 2015-09-04 21:16:27 -04:00
Rapptz
b7fc383013 Python3 import fixes. 2015-08-28 16:55:40 -04:00
Rapptz
faa7b726cd Quick documentation fixes 2015-08-27 22:17:49 -04:00
Rapptz
795b8ceffe on_status now takes only a member. 2015-08-27 17:45:43 -04:00
Rapptz
52852f4fd2 Give members their server as an attribute. 2015-08-27 17:03:04 -04:00
Rapptz
3aa8cc93a7 Members now have status info. 2015-08-27 07:41:29 -04:00
Rapptz
49bc2dbf48 Documentation update. 2015-08-26 07:46:46 -04:00
Rapptz
108f0a6c45 Server members are now their own class that subclass Users.
Roles are also now properly parsed.
2015-08-26 07:43:05 -04:00
Rapptz
3e0f09d32c Initial commit 2015-08-21 18:18:34 -04:00