16 Commits

Author SHA1 Message Date
Rapptz
855fa7e553 Documentation fixes for Permissions related code. 2016-01-14 12:24:59 -05:00
Rapptz
db4cc791dd Update license of files to 2016. 2016-01-04 22:28:29 -05:00
Rapptz
5a1d7a2d94 Change permissions to remove the can_ prefix. 2016-01-03 21:45:28 -05:00
abalabahaha
483384595b Unflip kick/ban permission bits 2015-12-22 17:58:43 -08:00
Rapptz
f1f0e169e4 Add __slots__ where appropriate to data classes. 2015-12-19 06:18:12 -05:00
Rapptz
51d91c2a82 Most data classes now support hashing. 2015-12-17 00:32:54 -05:00
Rapptz
434fc5c79e Remove the non-classmethod attributes in Permissions. 2015-12-16 22:21:09 -05:00
Rapptz
9137d92f67 All data classes now support !=, == and str(obj). 2015-12-13 22:53:48 -05:00
Rapptz
98ba68bb66 Simplified permissions bit operations. 2015-12-10 06:08:49 -05:00
Rapptz
b94dffaf87 Change Permissions constants to be class method factories instead. 2015-10-22 22:20:34 -04:00
Rapptz
8fbaa29e9c Document Permissions constants and set default permissions to 0. 2015-10-17 07:17:40 -04:00
Rapptz
61f62c1468 Add Channel.permissions_for and PrivateChannel.permissions_for.
These functions handle permission resolution for a specific member.

Aids with #18.
2015-10-17 06:21:51 -04:00
Rapptz
2559051e06 Pass kwargs to all constructors for future proofing. 2015-10-13 05:39:57 -04:00
Rapptz
afdada133f Permissions are now properties rather than functions.
This allows you to set or retrieve specific bits through a
higher level API to facilitate editing in the future.
2015-09-03 03:40:56 -04:00
Rapptz
b7fc383013 Python3 import fixes. 2015-08-28 16:55:40 -04:00
Rapptz
bcaf33e304 Preliminary work on permission parsing.
Thanks Voltagei.
2015-08-26 07:14:24 -04:00