aboutsummaryrefslogtreecommitdiff
path: root/discord/permissions.py
Commit message (Collapse)AuthorAgeFilesLines
* [lint] Replace equality comparisons to singletonsHornwitser2018-11-241-2/+2
| | | | | | | | Restrict the values accepted by comparisons with booleans to be actual booleans. Minor breaking of undocumented behaviour in permissions; the value to set bits to must be booleans (as indicated by the type error thrown).
* Change docstrings to raw-stringsBeatButton2018-09-141-3/+3
|
* [lint] Fix incorrect and inconsistent whitespaceHornwitser2018-08-221-2/+2
| | | | Adjust whitespace to be consistent with the rest of the library.
* Add Permissions.priority_speaker.slice2018-07-311-3/+12
|
* Fix typo in Permissions.is_subset/is_supersetHornwitser2018-06-211-2/+2
| | | | | | | Fix the name for the other's type when raising TypeError being incorrectly written as __class__name instead of __class__.__name__ in the is_subset and is_superset methods of the Permissions class. This was introduced at the creation of these methods in 21c88cf.
* Fixes various documentation errors/inconsistenciesSteve C2018-05-181-2/+2
| | | | Mostly dealing with permissions, also fixes Raw Events inclusion.
* Add pinning to manage_messages docSteve C2017-08-271-1/+1
|
* Disallow setting non-permission attributesMitchell Ferree2017-08-081-0/+2
|
* Permissions.view_audit_logs -> Permissions.view_audit_logRapptz2017-05-281-3/+3
|
* Raise when an invalid permission is passed to PermissionOverwrite.Rapptz2017-05-201-0/+3
|
* Oversight in Permissions still having a table.Rapptz2017-05-201-30/+30
|
* Implement audit logs.Rapptz2017-04-301-3/+3
|
* Fix view_audit_log incorrect pluralisation.Rapptz2017-04-081-1/+1
|
* Add Permissions.view_audit_logRapptz2017-03-211-3/+12
|
* Check that the type in Colour and Permissions are int.Rapptz2017-02-211-0/+3
|
* Documentation fixes for permission.Rapptz2017-02-131-3/+3
|
* Update copyright year to 2017.Rapptz2017-01-201-1/+1
|
* Remove extraneous kwargs from Permissions constructor.Rapptz2017-01-131-1/+1
|
* Add useful repr to all data classes.Rapptz2017-01-031-0/+3
|
* Rename Server to Guild everywhere.Rapptz2017-01-031-12/+12
|
* Slots use tuples instead now.Rapptz2017-01-031-1/+1
|
* Add PermissionOverwrite.is_empty to query empty state of an overwrite.Rapptz2016-11-211-0/+8
| | | | Fixes #382
* Add Permissions.update and PermissionOverwrite.update for bulk edits.Rapptz2016-11-211-0/+38
| | | | | This should satisfy those that have a one-line obsession and make things a little bit easier if you have a dict.
* Add support for reactions.khazhyk2016-10-271-3/+12
| | | | | | | | | | | Reactions can be be standard emojis, or custom server emojis. Adds - add/remove_reaction - get_reaction_users - Messages have new field reactions - new events - message_reaction_add, message_reaction_remove - new permission - add_reactions
* Add support for new Manage Webhooks permission.Rapptz2016-10-031-8/+14
|
* Fix Permissions.manage_emojis bit being incorrect.Rapptz2016-09-291-4/+4
|
* Add Permissions.manage_emojisRapptz2016-09-261-3/+17
|
* Rename Permissions.change_nicknames to change_nickname to match UI.Rapptz2016-07-301-3/+3
| | | | This is a breaking change.
* Add new External Emojis permission.Rapptz2016-07-241-4/+13
|
* Add discord.PermissionOverwrite type for channel-specific overwrites.Rapptz2016-06-141-0/+93
|
* Reference the Discord UI in the permission documentation.Rapptz2016-05-231-3/+3
|
* Add Permissions.administrator and change Permissions.manage_rolesRapptz2016-05-121-9/+25
|
* Make Permissions an iterable class.Rapptz2016-05-011-0/+15
|
* Make Permissions partially-ordered.Milo Mirate2016-04-301-0/+39
| | | | | | | | | | Specifically: * P1 <= P2 iff P1 expresses a subset of the permissions expressed by P2. * P1 < P2 iff P1 <= P2 and P1 != P2 * vice versa for P1 >= P2 and P1 > P2
* Add permissions for changing or managing nicknames.Rapptz2016-04-291-3/+21
|
* Clarify channel-specific permissions documentation.Khazhismel Kumykov2016-04-051-2/+6
| | | | | | Manage Roles and Manage Channels is renamed to "Manage Permissions" and "Manage Channel" in the discord UI, clarify which fields in the Permission object those map to.
* Documentation fixes for Permissions related code.Rapptz2016-01-141-9/+9
|
* Update license of files to 2016.Rapptz2016-01-041-1/+1
|
* Change permissions to remove the can_ prefix.Rapptz2016-01-031-63/+63
|
* Unflip kick/ban permission bitsabalabahaha2015-12-221-8/+8
|
* Add __slots__ where appropriate to data classes.Rapptz2015-12-191-1/+2
|
* Most data classes now support hashing.Rapptz2015-12-171-0/+5
|
* Remove the non-classmethod attributes in Permissions.Rapptz2015-12-161-45/+6
|
* All data classes now support !=, == and str(obj).Rapptz2015-12-131-0/+16
|
* Simplified permissions bit operations.Rapptz2015-12-101-2/+2
|
* Change Permissions constants to be class method factories instead.Rapptz2015-10-221-0/+43
|
* Document Permissions constants and set default permissions to 0.Rapptz2015-10-171-1/+29
|
* Add Channel.permissions_for and PrivateChannel.permissions_for.Rapptz2015-10-171-0/+25
| | | | | | These functions handle permission resolution for a specific member. Aids with #18.
* Pass kwargs to all constructors for future proofing.Rapptz2015-10-131-1/+1
|
* Permissions are now properties rather than functions.Rapptz2015-09-031-4/+113
| | | | | This allows you to set or retrieve specific bits through a higher level API to facilitate editing in the future.