172 Commits

Author SHA1 Message Date
Rapptz
b13029b993 Remove unused internal code in Member. 2016-07-22 18:09:53 -04:00
Rapptz
1c8ab25917 Add support for querying information about group calls. 2016-07-15 22:46:00 -04:00
Rapptz
e19244b041 Add Member.top_role property to get the highest role. 2016-06-18 01:37:45 -04:00
Rapptz
9077b4e319 Fix Member.colour to use the new algorithm for determining colour. 2016-05-12 22:12:33 -04:00
Rapptz
47cccba946 Remove setting read-only __doc__ in Member overrides. 2016-04-29 22:30:51 -04:00
Rapptz
e2bfa90eef Add User.mentioned_in helper to check if a message mentions you. 2016-04-29 20:11:13 -04:00
Rapptz
3758c0aa83 Member.mention now uses nickname hint if needed. 2016-04-29 19:29:48 -04:00
Rapptz
133e8d3a44 Add support for server specific nicknames. 2016-04-29 06:39:21 -04:00
Rapptz
53a240e0d3 Add Member.colour property to get rendered role colour of a member. 2016-03-27 15:12:05 -04:00
Rapptz
86e9b62303 Move Member.permissions_in to User.permissions_in. 2016-01-21 23:00:51 -05:00
Khazhismel
000e7e57ea Change member constructor to not rely on order of json data object 2016-01-12 11:45:59 -05:00
Rapptz
4ea015067f Handle cases where people put False-like values for game presences. 2016-01-11 19:50:13 -05:00
Rapptz
8974dffc4e Change internal update functions to have a leading underscore. 2016-01-11 14:44:13 -05:00
Rapptz
c8344af103 Add Member.permissions_in.
Fixes #63
2016-01-06 12:18:48 -05:00
Rapptz
db4cc791dd Update license of files to 2016. 2016-01-04 22:28:29 -05:00
Khazhismel
0aa46e6def Add game data class, replace game_id. 2015-12-23 21:28:18 -05:00
Rapptz
f1f0e169e4 Add __slots__ where appropriate to data classes. 2015-12-19 06:18:12 -05:00
Rapptz
79bdf2a721 Add enumerators instead of strings.
Changes channel type, status and server region into 3.4 enums.
2015-12-04 22:13:17 -05:00
Rapptz
df3cb831a9 Member.roles array now has the default role as the first element. 2015-11-28 19:26:25 -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
Azza
0b4706699f fixed voice_members not updating when changing channels 2015-11-19 23:15:27 -05:00
Rapptz
a0073c734e Split data classes into more files. 2015-10-27 16:23:20 -04:00