Rapptz
5a72391b72
Add thread related permissions
4 years ago
Rapptz
598057ee79
Add Permissions.manage_events
4 years ago
Rapptz
9d39b135f4
Modernize code to use f-strings
This also removes the encoding on the top, since Python 3 does it by
default. It also changes some methods to use `yield from`.
4 years ago
Nadir Chowdhury
1b2688518e
Implement StageChannel and related methods
4 years ago
Rapptz
3576e2ee01
Add support for Permissions.request_to_speak
4 years ago
Nadir Chowdhury
7d345e8e4e
remove trailing whitespace
4 years ago
TheOneMusic
259c3909a8
Fix Permissions.all_channel documentation to link attributes
4 years ago
TheOneMusic
9c52432274
Update permission class methods to match Discord UI
4 years ago
Rapptz
a8f44174ba
Add Permissions.use_slash_commands
4 years ago
Nihaal Sangha
69bdc3a184
Change copyright year to present
4 years ago
Rapptz
1c03a4aac9
Evict keys when they're set to None in PermissionOverwrite
Fixes #5929
5 years ago
apple502j
0ebf5b2fa7
Add support for flag alias
5 years ago
Michael
93fa46713a
Fix and add documentation
5 years ago
Skezza
c3bca7ec73
Documentation formatting
5 years ago
Sebastian Law
b4b953bfc6
Fix various inconsistencies within the documentation ( #5067 )
5 years ago
Rapptz
215fed831c
Mention that you can create Permissions via kwargs now
5 years ago
Rapptz
02397306b2
Drop superfluous zero in version related changes in the documentation
5 years ago
Rapptz
6071607176
Bump copyright year to 2020
Closes #2510
5 years ago
Rapptz
650beee53d
Add instance check to PermissionOvewrite.__eq__
5 years ago
Rapptz
2770137bd6
Redesign permissions to allow aliases to be used.
This adds manage_permissions, view_channel, and use_external_emojis
aliases to Permissions. It should be noted that to prevent breaking
changes and for sake of usefulness, aliases are not included in
the `__iter__` for either Permissions or PermissionOverwrite.
Fixes #2496
5 years ago
Josh B
46246a2844
Add view_guild_insights permission
6 years ago
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