NCPlayz
3c9bcc2851
Improve documentation
6 years ago
NCPlayz
84e86ff666
Add `Permissions.stream`
Add stream to Permissions classmethods
6 years ago
DevilXD
9d92939fbe
Added support for comparing PermissionOverwrites
When trying to check if a specific permission overwrite is already set on a channel, it can be done by fetching the already existing overwrite and comparing it with a one you want to set. Comparing them directly wasn't possible before, and this small change allows for that.
Could be expanded for other comparison operators, not sure how it would work though.
6 years ago
Dante Dam
9656a21ebe
Bumped copyright years to 2019.
6 years ago
StarrFox
eab0a4f38d
Fix typo in Permissions.all_channel
6 years ago
Laurenz
dd884a6afe
Update Message.mention_everyone docs to include @here
6 years ago
Hornwitser
633192b3cd
[lint] Replace equality comparisons to singletons
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).
7 years ago
BeatButton
a4d1599ce9
Change docstrings to raw-strings
7 years ago
Hornwitser
c8b49d37be
[lint] Fix incorrect and inconsistent whitespace
Adjust whitespace to be consistent with the rest of the library.
7 years ago
slice
e6f1a7e93a
Add Permissions.priority_speaker.
7 years ago
Hornwitser
96baabcaa2
Fix typo in Permissions.is_subset/is_superset
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
.
7 years ago
Steve C
0e945915b7
Fixes various documentation errors/inconsistencies
Mostly dealing with permissions, also fixes Raw Events inclusion.
7 years ago
Steve C
5e2d915375
Add pinning to manage_messages doc
8 years ago
Mitchell Ferree
ecdd21212c
Disallow setting non-permission attributes
8 years ago
Rapptz
34815a43f4
Permissions.view_audit_logs -> Permissions.view_audit_log
8 years ago
Rapptz
d672f84932
Raise when an invalid permission is passed to PermissionOverwrite.
8 years ago
Rapptz
bd7b2e2d35
Oversight in Permissions still having a table.
8 years ago
Rapptz
c54a6a927d
Implement audit logs.
8 years ago
Rapptz
580b4baef9
Fix view_audit_log incorrect pluralisation.
8 years ago
Rapptz
8a34c412ed
Add Permissions.view_audit_log
8 years ago
Rapptz
702d596af9
Check that the type in Colour and Permissions are int.
8 years ago
Rapptz
1ec7daf372
Documentation fixes for permission.
8 years ago
Rapptz
ff9f5749e1
Update copyright year to 2017.
8 years ago
Rapptz
6d3a5eaeb6
Remove extraneous kwargs from Permissions constructor.
8 years ago
Rapptz
dceba9d962
Add useful repr to all data classes.
8 years ago
Rapptz
d1d54a468a
Rename Server to Guild everywhere.
9 years ago
Rapptz
e4b16851bf
Slots use tuples instead now.
9 years ago
Rapptz
fb1f9ac659
Add PermissionOverwrite.is_empty to query empty state of an overwrite.
Fixes #382
9 years ago
Rapptz
7ff7b0fb9c
Add Permissions.update and PermissionOverwrite.update for bulk edits.
This should satisfy those that have a one-line obsession and make things
a little bit easier if you have a dict.
9 years ago
khazhyk
c4acc0e1a1
Add support for reactions.
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
9 years ago
Rapptz
b39de025c5
Add support for new Manage Webhooks permission.
9 years ago
Rapptz
18a9b75990
Fix Permissions.manage_emojis bit being incorrect.
9 years ago
Rapptz
5d8d3ab43a
Add Permissions.manage_emojis
9 years ago
Rapptz
cfca7eb1f8
Rename Permissions.change_nicknames to change_nickname to match UI.
This is a breaking change.
9 years ago
Rapptz
ad226f2020
Add new External Emojis permission.
9 years ago
Rapptz
fb82a37cc6
Add discord.PermissionOverwrite type for channel-specific overwrites.
9 years ago
Rapptz
f3f3ab1cd4
Reference the Discord UI in the permission documentation.
9 years ago
Rapptz
dd8a60f743
Add Permissions.administrator and change Permissions.manage_roles
9 years ago
Rapptz
1acf478fb7
Make Permissions an iterable class.
9 years ago
Milo Mirate
21c88cf727
Make Permissions partially-ordered.
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
9 years ago
Rapptz
cc78cfedb6
Add permissions for changing or managing nicknames.
9 years ago
Khazhismel Kumykov
160cbc81e7
Clarify channel-specific permissions documentation.
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.
9 years ago
Rapptz
855fa7e553
Documentation fixes for Permissions related code.
9 years ago
Rapptz
db4cc791dd
Update license of files to 2016.
9 years ago
Rapptz
5a1d7a2d94
Change permissions to remove the can_ prefix.
9 years ago
abalabahaha
483384595b
Unflip kick/ban permission bits
9 years ago
Rapptz
f1f0e169e4
Add __slots__ where appropriate to data classes.
9 years ago
Rapptz
51d91c2a82
Most data classes now support hashing.
9 years ago
Rapptz
434fc5c79e
Remove the non-classmethod attributes in Permissions.
9 years ago
Rapptz
9137d92f67
All data classes now support !=, == and str(obj).
9 years ago