Rapptz
cf681105ce
Rename Permissions.manage_guild_expressions to manage_expressions
2 years ago
Andrin S
be71383af9
Add create_expressions permission
2 years ago
Jakub Kuczys
ca0b444047
Document the change in behaviour of bool(flag_obj)
2 years ago
Andrin S
1767be0081
Add support for voice messages
Co-authored-by: Danny <[email protected] >
2 years ago
Andrin S
ee9e549836
Add use_external_sounds permission
2 years ago
Andrin S
e3e0d93dd9
Add new use_soundboard and manage_guild_expressions permissions
2 years ago
Jakub Kuczys
6725f329b2
Set thread related perms in private channels to False
3 years ago
zephyrkul
9fe19dcc69
[commands] Add Context.permissions and Context.bot_permissions
3 years ago
zephyrkul
78a026aae2
Add remaining bitwise operators to Flags
3 years ago
invalid-user
20a7961e19
Rename use_slash_commands to use_application_commands
Co-authored-by: Danny <[email protected] >
3 years ago
Narmy
723584ca19
Add Permissions.elevated()
3 years ago
Rapptz
a5f1c2f592
Take into consideration member timeouts in permission calculations
3 years ago
I. Ahmad
80e42d139c
Add missing types for two permissions in PermissionOverwrite
3 years ago
Rapptz
b0501e56a0
Fix PermissionOverwrite.update typing not allowing None
3 years ago
Stocker
fd5dea4e34
Update Permissions.stage_moderator
3 years ago
Stocker
5aa696ccfa
Fix typing issues and improve typing completeness across the library
Co-authored-by: Danny <[email protected] >
Co-authored-by: Josh <[email protected] >
3 years ago
Rapptz
4c8b1f9abd
Remove unused imports
3 years ago
Rapptz
45dc3d3df9
Rename start_embedded_activities to use_embedded_activities
3 years ago
Josh
147948af9b
Use typing.Self throughout library
3 years ago
Rapptz
88b520b5ab
Reformat code using black
Segments where readability was hampered were fixed by appropriate
format skipping directives. New code should hopefully be black
compatible. The moment they remove the -S option is probably the moment
I stop using black though.
3 years ago
Maya
a1dbc0ca27
Add member timeouts and relevant permissions
3 years ago
James Gayfer
41d22f4312
Fix all_channel permissions
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.
4 years ago
James Gayfer
4aafa39e8c
Update thread permissions
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
4 years ago
apple502j
851dfc3c75
Fix permissions.py typing
4 years ago
Rapptz
4a6670c062
Add missing typehint for PermissionOverwrite.pair
Technically inferred but better to be explicit
4 years ago
z03h
27debe18ca
Update Permissions classmethods to include thread/stage/sticker
4 years ago
Nadir Chowdhury
60d82cf908
implement guild stickers
4 years ago
Rapptz
be5603141e
Remove slots from flags
Fix #7159
4 years ago
Rapptz
88620d052a
Typehint permissions
4 years ago
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