aboutsummaryrefslogtreecommitdiff
path: root/discord/permissions.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix all_channel permissions James Gayfer2021-08-271-1/+1
| | | | | | When the new permission for send_messages_in_threads was added, we added the wrong bit. Instead of adding the bit as the most significant (37), we added it as the last significant, which invalidated most of the permissions defined by this method.
* Update thread permissionsJames Gayfer2021-08-261-13/+23
| | | | | | | Discord has renamed / repurposed "Use Public Threads" and "Use Private Threads", as well as added a new permission "Send Messages in Threads". For more information, see: https://github.com/discord/discord-api-docs/pull/3672
* Fix permissions.py typingapple502j2021-08-231-1/+4
|
* Add missing typehint for PermissionOverwrite.pairRapptz2021-08-221-1/+1
| | | | Technically inferred but better to be explicit
* Update Permissions classmethods to include thread/stage/stickerz03h2021-08-181-3/+11
|
* implement guild stickersNadir Chowdhury2021-07-301-0/+24
|
* Remove slots from flagsRapptz2021-07-031-1/+0
| | | | Fix #7159
* Typehint permissionsRapptz2021-07-031-70/+126
|
* Add thread related permissionsRapptz2021-06-081-1/+26
|
* Add Permissions.manage_eventsRapptz2021-05-051-0/+8
|
* Modernize code to use f-stringsRapptz2021-04-041-8/+6
| | | | | This also removes the encoding on the top, since Python 3 does it by default. It also changes some methods to use `yield from`.
* Implement StageChannel and related methodsNadir Chowdhury2021-04-031-1/+9
|
* Add support for Permissions.request_to_speakRapptz2021-04-011-6/+23
|
* remove trailing whitespaceNadir Chowdhury2021-03-131-5/+5
|
* Fix Permissions.all_channel documentation to link attributesTheOneMusic2021-03-011-10/+11
|
* Update permission class methods to match Discord UITheOneMusic2021-02-281-11/+47
|
* Add Permissions.use_slash_commandsRapptz2021-02-181-2/+6
|
* Change copyright year to presentNihaal Sangha2021-01-151-1/+1
|
* Evict keys when they're set to None in PermissionOverwriteRapptz2020-10-171-3/+6
| | | | Fixes #5929
* Add support for flag aliasapple502j2020-09-241-10/+2
|
* Fix and add documentationMichael2020-09-231-4/+6
|
* Documentation formattingSkezza2020-06-301-1/+1
|
* Fix various inconsistencies within the documentation (#5067)Sebastian Law2020-06-281-1/+1
|
* Mention that you can create Permissions via kwargs nowRapptz2020-01-231-0/+4
|
* Drop superfluous zero in version related changes in the documentationRapptz2020-01-211-1/+1
|
* Bump copyright year to 2020Rapptz2020-01-191-1/+1
| | | | Closes #2510
* Add instance check to PermissionOvewrite.__eq__Rapptz2020-01-191-1/+1
|
* Redesign permissions to allow aliases to be used.Rapptz2020-01-111-246/+151
| | | | | | | | | 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
* Add view_guild_insights permissionJosh B2019-11-151-3/+13
|
* Improve documentationNCPlayz2019-06-071-40/+46
|
* Add `Permissions.stream`NCPlayz2019-04-121-3/+10
| | | | Add stream to Permissions classmethods
* Added support for comparing PermissionOverwritesDevilXD2019-01-281-0/+7
| | | | 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.
* Bumped copyright years to 2019.Dante Dam2019-01-281-1/+1
|
* Fix typo in Permissions.all_channelStarrFox2019-01-281-1/+1
|
* Update Message.mention_everyone docs to include @hereLaurenz2018-12-141-1/+1
|
* [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
|