dolfies
cd035ca8c7
Undocument alias parameter
3 years ago
dolfies
fc8e2b0f73
Implement avatar decorations
These can't be used by non-staff yet
3 years ago
dolfies
5253d918d3
Document ApplicationProfile and remove unused imports
3 years ago
dolfies
8a315c48e6
Finish profile and application install param implementations, fix miscallenous related things
3 years ago
dolfies
fd3ff4bb01
Document nsfw_allowed being nullable
3 years ago
dolfies
b2d834f898
Cleanup and implement missing setting types (fixes #<deleted-issue>)
3 years ago
dolfies
2474c9aefd
Fix ClientUser state disappearing ( fixes #77 again)
3 years ago
dolfies
a777327d8e
Implement Commands backend v2
3 years ago
dolfies
70e87605ba
Fix default_avatar formula (again)
3 years ago
dolfies
1440f61ab1
Implement PremiumUsageFlags, PurchasedFlags; small user docs improvements
3 years ago
dolfies
a4e0e12d54
Fix default avatar formula ( fixes #272 )
3 years ago
dolfies
552864b290
Finalize documentation
3 years ago
dolfies
13d7bafd64
Docs are fun 😭
3 years ago
dolfies
8eaa26d479
Various fixes (docs, events, enums, exports
3 years ago
dolfies
e08cdd073a
Documentation and operations fixes
3 years ago
dolfies
29c2036bc8
Rebase to latest upstream
3 years ago
dolfies
3395417844
Improve typing across the board, remove old browser references
3 years ago
dolfies
7e1dda6695
Add Note.value alias
3 years ago
dolfies
346f447da6
Fix typing issues, make ClientUser relationship properties return relationships
3 years ago
dolfies
388863e521
Implement joining guilds from id & lurking, bug fixes, doc fixes
3 years ago
dolfies
957a484306
Run black
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
chromacoat dreamkey
095aaa9ad1
Change wording of InvalidArgument removal in docs
3 years ago
Josh
147948af9b
Use typing.Self throughout library
3 years ago
jack1142
f63eb5c30d
Fix avatar clearing in ClientUser.edit
3 years ago
Josh
2b69b5d545
Remove discord.InvalidArgument
This uses TypeError and ValueError instead.
3 years ago
Josh
3ce00abeae
Fix some type-check errors
3 years ago
Rapptz
b389596f26
Fix typing of User._accent_colour
3 years ago
Rapptz
940bdb988a
Revert "Move global user storage from WeakValueDictionary to dict"
This reverts commit cb2363f0fd
.
This lead to memory leaks due to insufficient tracking, assuming that
the members intent was enabled.
3 years ago
dolfies
54c9c3588c
Fix tracking settings, add settings.edit
3 years ago
dolfies
89e9f92789
Redesign profiles, remove bot-only method, fix repr(Note)
3 years ago
dolfies
da57fd0e68
Add Object to permission overwrites, channel jump urls, command iterators
3 years ago
dolfies
7bbc38f675
Small docstring fixes
4 years ago
dolfies
ccd971527f
Finish docs?
4 years ago
dolfies
ad3904d65a
Fix user.py __all__
4 years ago
dolfies
1646421cc0
Implement guild notification settings
4 years ago
dolfies
c4dc7db710
Make phone actually an int
4 years ago
dolfies
7b11d8c256
Get it starting
4 years ago
dolfies
225ca0135a
Misc. fixes
4 years ago
dolfies
3e4ad5d651
Migrate user.py, refactor a few things
4 years ago
Rapptz
848d752388
Change User.avatar to be Optional[Asset] instead of Asset
This change was needed to allow users to more easily check if an
uploaded avatar was set using `if user.avatar:` rather than the
admittedly clunky `if user.avatar != user.default_avatar.
The old behaviour with a fallback is still useful for actual display
purposes, so it has been moved over to the new `User.display_avatar`
attribute. This also has symmetry with the newly added
`Member.display_avatar` attribute.
4 years ago
Rapptz
490bbffc93
Remove in-place edits and return fresh instances instead
Fixes #4098
4 years ago
Rapptz
b8898c7788
Fix user.py typings and reformat file
4 years ago
JustAnyone
91652e3b60
Add per-guild member avatar support
Fix #7054
4 years ago
Rapptz
63434fbfd9
Fix some type hints in user.py
4 years ago
thetimtoy
529fad6fec
Type-hint user.py
4 years ago
nickofolas
06a371e80a
Fix User.accent_color incorrect attribute access
4 years ago
Rapptz
ecf239d2a2
Fix user cache acting incorrectly with evictions
The first issue involved copied users which would lead to user updates
causing faster evictions of the cache than was expected.
The second issue involved users that weren't bound to an internal
lifetime eviction policy. These users would not get evicted.
For example, a user without mutual guilds or being part of the internal
cache in general (messages, DMs) would never end up being evicted for
some strange reason. To handle this case, store_user would get a
counterpart named create_user which would create a user without
potentially storing them in the cache. That way only users with a
bound lifetime within the library would be stored.
4 years ago
Rapptz
9d25bb454b
Fix recursive inheritance in BaseUser
4 years ago
Alex Nørgaard
b47133dfb2
Add BaseUser.banner for all subclasses to access new banners
4 years ago