Mak
343130ffce
Apply suggestions from code review
Co-authored-by: DA344 <108473820+DA-344@users.noreply.github.com>
1 week ago
makerze
98e3668214
refactor: Colour assigns only primary_color and added version strings
1 week ago
makerze
95c4744a30
Fix: types and broken none
3 weeks ago
makerze
ee963d05a6
Fix: color=primary_color and add types
3 weeks ago
Mak
8b5895cffc
Apply suggestions from code review
Co-authored-by: DA344 <108473820+DA-344@users.noreply.github.com>
3 weeks ago
makerze
f1047a59de
Add alias to primary, secondary and tertiary color
4 weeks ago
makerze
59a35a2970
black format
4 weeks ago
makerze
89961e52fa
linter
4 weeks ago
makerze
4d058136fc
Fix: throw exception when color is used together with colors parameters
4 weeks ago
makerze
44fb360a83
Add new role parameters for creation of gradient and holographic roles
4 weeks ago
Rapptz
8953938a53
Update Pyright to v1.1.394
5 months ago
Leonardo
8edf433255
Implement rich role.move interface
Co-authored-by: Danny <1695103+Rapptz@users.noreply.github.com>
5 months ago
Soheab_
135e57c81f
Add support for role flags
2 years ago
Rapptz
980fe7b0f9
Simplify RoleTag implementation for always-null attributes
3 years ago
Willy
82b12ba481
Remove redundant int cast
3 years ago
Rapptz
48ef01204c
Add support for 'linked role' role tag
3 years ago
Rapptz
3d24f0fb12
Add support for role subscription reading
3 years ago
Steve C
ce06beeb6c
Fix permissions-based docstrings to be more consistent
3 years ago
Rapptz
87bc79e6e3
Change certain sequences to use a special proxy type instead of list
This is to speed up cases where someone is just querying the length
of the underlying sequence. If anything else is done to the sequence
then it is copied from the original iterator.
This change should be mostly transparent.
3 years ago
Kellen
0f18d93e47
Remove unused imports
3 years ago
Stocker
5aa696ccfa
Fix typing issues and improve typing completeness across the library
Co-authored-by: Danny <Rapptz@users.noreply.github.com>
Co-authored-by: Josh <josh.ja.butt@gmail.com>
3 years ago
chromacoat dreamkey
095aaa9ad1
Change wording of InvalidArgument removal in docs
3 years ago
Josh
147948af9b
Use typing.Self throughout library
3 years ago
Josh
2b69b5d545
Remove discord.InvalidArgument
This uses TypeError and ValueError instead.
3 years ago
Josh
4dbe1af32f
Update sphinx and fix documentation issues
3 years ago
jack1142
783513726f
Add support for role icons
* Document ROLE_ICONS guild feature
https://github.com/discord/discord-api-docs/pull/3847
* Add support for role icons
https://github.com/discord/discord-api-docs/pull/3847
* Add support for role icon/emoji changes in audit log
https://github.com/discord/discord-api-docs/pull/3847
3 years ago
Rapptz
490bbffc93
Remove in-place edits and return fresh instances instead
Fixes #4098
4 years ago
Rapptz
9d4fa0341e
Fix typing of move role position payload parameter
4 years ago
Rapptz
2d7c709235
Rework Role.edit to not rely on previous role state
4 years ago
Rapptz
c475218112
Typehint Role and RoleTags
4 years ago
Rapptz
35bef7af38
Fix Role.is_assignable() computing Guild.me twice
4 years ago
TheOneMusic
9ba5745e68
Check for guild owner in Role.is_assignable()
4 years ago
Tyler
6c8f1ccbdf
Add Role.is_assignable()
4 years ago
Rapptz
1954861668
Add warning for comparing with role positioning
4 years ago
Nadir Chowdhury
757cfad38f
Type up **kwargs of various methods
4 years ago
Rapptz
d85805ab6d
First pass at supporting v8 API
4 years ago
Rapptz
99fc950510
Use f-strings in more places that were missed.
4 years ago
Nadir Chowdhury
89456022cf
Add `__all__` to remaining modules
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
Rapptz
272339d5e6
Add support for the new permission serialization scheme.
5 years ago
Nihaal Sangha
69bdc3a184
Change copyright year to present
5 years ago
Rapptz
e65dab3b23
Implement role tags.
This comes with:
* The RoleTags class
* Role.is_premium_subscriber()
* Role.is_bot_managed()
* Role.is_integration()
* Guild.self_role
* Guild.premium_subscriber_role
5 years ago
Michael
93fa46713a
Fix and add documentation
5 years ago
Anurag Singh
5769511779
allow passing color int to role.edit
5 years ago
Saurabh Chaturvedi
3faa9799e3
Fix documentation problem with color
At readthedocs.io, for role `color`, it says "Returns the role colour. An alias exists under `color`". This PR fixes that to say "Returns the role color. An alias exists under `colour`".
6 years ago
Rapptz
6071607176
Bump copyright year to 2020
Closes #2510
6 years ago
Rapptz
5c0b127c96
Create Permissions and Colour objects when necessary in Role
This should have some memory savings of ~24 bytes per role.
* 8 bytes for Permissions
* 8 bytes for Colour
* 8 bytes for the alias
I'm not sure how significant it is but it should be a decent amount.
6 years ago
NCPlayz
3c9bcc2851
Improve documentation
6 years ago
NCPlayz
fb02191b80
Organise documentation
6 years ago
Dante Dam
9656a21ebe
Bumped copyright years to 2019.
7 years ago