| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Change User.avatar to be Optional[Asset] instead of Asset | Rapptz | 2021-08-25 | 1 | -19/+16 |
| | | | | | | | | | | | | 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. | ||||
| * | Remove in-place edits and return fresh instances instead | Rapptz | 2021-08-23 | 1 | -2/+10 |
| | | | | | Fixes #4098 | ||||
| * | Fix user.py typings and reformat file | Rapptz | 2021-08-22 | 1 | -6/+16 |
| | | |||||
| * | Add per-guild member avatar support | JustAnyone | 2021-08-22 | 1 | -0/+12 |
| | | | | Fix #7054 | ||||
| * | Fix some type hints in user.py | Rapptz | 2021-08-18 | 1 | -5/+2 |
| | | |||||
| * | Type-hint user.py | thetimtoy | 2021-08-18 | 1 | -34/+65 |
| | | |||||
| * | Fix User.accent_color incorrect attribute access | nickofolas | 2021-07-30 | 1 | -2/+2 |
| | | |||||
| * | Fix user cache acting incorrectly with evictions | Rapptz | 2021-07-29 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | 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. | ||||
| * | Fix recursive inheritance in BaseUser | Rapptz | 2021-07-28 | 1 | -1/+1 |
| | | |||||
| * | Add BaseUser.banner for all subclasses to access new banners | Alex Nørgaard | 2021-07-28 | 1 | -2/+50 |
| | | |||||
| * | Use a specific tag type for member and user comparisons | Rapptz | 2021-07-08 | 1 | -4/+8 |
| | | | | | | | The previous protocol based tag type caused significant overhead (in the magnitude of seconds). Removing this should simplify object creation by removing typing.Generic from the __mro__ | ||||
| * | Move global user storage from WeakValueDictionary to dict | Rapptz | 2021-07-07 | 1 | -1/+18 |
| | | | | | | | | | | | | | Profiling showed that WeakValueDictionary caused rather significant and noticeable slowdowns during startup. Since the only thing it was used for was to automatically remove the key from the mapping when the reference count reaches zero, the same could theoretically be accomplished by using the __del__ special method. There is a chance that this could lead to a memory leak since the __del__ method is not always called, but the only instances of this happening are during interpreter shutdown to my knowledge and at that point the mapping is the least of my concern. | ||||
| * | Rework User.edit to have proper typing | Rapptz | 2021-06-29 | 1 | -6/+9 |
| | | |||||
| * | Remove extraneous __slots__ assignments | Rapptz | 2021-06-28 | 1 | -2/+2 |
| | | |||||
| * | Type up **kwargs of various methods | Nadir Chowdhury | 2021-05-10 | 1 | -4/+3 |
| | | |||||
| * | Typehint Widget | Josh | 2021-05-09 | 1 | -0/+9 |
| | | |||||
| * | Clarify ClientUser.verified docs | David | 2021-04-30 | 1 | -1/+1 |
| | | |||||
| * | Remove lingering User.avatar documentation | Rapptz | 2021-04-19 | 1 | -4/+0 |
| | | |||||
| * | Add missing reprs to some objects | Steve C | 2021-04-17 | 1 | -0/+6 |
| | | | | These are WidgetMember, BaseUser, and DeletedReferencedMessage | ||||
| * | Rewrite Asset design | Rapptz | 2021-04-16 | 1 | -57/+11 |
| | | | | | | | | | | | | | | | | | | | | | | | | This is a breaking change. This does the following transformations, assuming `asset` represents an asset type. Object.is_asset_animated() => Object.asset.is_animated() Object.asset => Object.asset.key Object.asset_url => Object.asset_url Object.asset_url_as => Object.asset.replace(...) Since the asset type now requires a key (or hash, if you will), Emoji had to be flattened similar to how Attachment was done since these assets are keyed solely ID. Emoji.url (Asset) => Emoji.url (str) Emoji.url_as => removed Emoji.url.read => Emoji.read Emoji.url.save => Emoji.save This transformation was also done to PartialEmoji. | ||||
| * | Remove User.permissions_in | Rapptz | 2021-04-11 | 1 | -16/+0 |
| | | | | | This seemed to only cause confusion. | ||||
| * | Use f-strings in more places that were missed. | Rapptz | 2021-04-08 | 1 | -8/+12 |
| | | |||||
| * | Add `__all__` to remaining modules | Nadir Chowdhury | 2021-04-07 | 1 | -0/+5 |
| | | |||||
| * | Convert datetimes to aware datetimes with UTC. | Rapptz | 2021-04-04 | 1 | -1/+2 |
| | | | | | | Naive datetimes will now be interpreted as local time throughout the library. | ||||
| * | Remove userbot functionality | Rapptz | 2021-04-04 | 1 | -551/+7 |
| | | | | | | This has a lot of legacy and cruft so there may be some stuff I've missed but this first pass is enough to get a clear separation. | ||||
| * | Modernize code to use f-strings | Rapptz | 2021-04-04 | 1 | -4/+2 |
| | | | | | | This also removes the encoding on the top, since Python 3 does it by default. It also changes some methods to use `yield from`. | ||||
| * | deprecate User.relationships | Nadir Chowdhury | 2021-03-28 | 1 | -0/+2 |
| | | |||||
| * | Update create_dm documentation to say it's a coroutine | Alex Nørgaard | 2021-03-24 | 1 | -1/+3 |
| | | |||||
| * | Code optimisations and refactoring via Sourcery | Nadir Chowdhury | 2021-02-24 | 1 | -5/+1 |
| | | |||||
| * | Deprecate non-bot methods | Nadir Chowdhury | 2021-02-23 | 1 | -0/+52 |
| | | |||||
| * | Add User.mutual_guilds | sudosnok | 2021-02-20 | 1 | -0/+12 |
| | | |||||
| * | Fix User public flags not updating | Lucas | 2021-01-17 | 1 | -0/+1 |
| | | |||||
| * | Change copyright year to present | Nihaal Sangha | 2021-01-15 | 1 | -1/+1 |
| | | |||||
| * | Fix and add documentation | Michael | 2020-09-23 | 1 | -3/+13 |
| | | |||||
| * | Documentation formatting | Skezza | 2020-06-30 | 1 | -1/+1 |
| | | |||||
| * | Fix various inconsistencies within the documentation (#5067) | Sebastian Law | 2020-06-28 | 1 | -2/+2 |
| | | |||||
| * | Fix incorrect class reference in documentation | JohnyTheCarrot | 2020-06-04 | 1 | -1/+1 |
| | | |||||
| * | Add support for public user flags | JohnyTheCarrot | 2020-05-29 | 1 | -1/+8 |
| | | |||||
| * | Fix colour properties being displayed as methods in the documentation. | kittenswolf | 2020-05-03 | 1 | -2/+2 |
| | | |||||
| * | Fixes and improvements for v1.3 documentation | Harmon | 2020-01-22 | 1 | -0/+3 |
| | | | | | | | | | | * Add missing versionadded strings for v1.3 * Add missing versionchanged string for Message.edit * Consistently use versionadded for attributes * Consistently use versionchanged for parameters * Use versionchanged for Bot.is_owner * Fix references in v1.3 changelog * Improve grammar in v1.3 changelog | ||||
| * | Bump copyright year to 2020 | Rapptz | 2020-01-19 | 1 | -1/+1 |
| | | | | | Closes #2510 | ||||
| * | Add Profile.system and Profile.team_user to query newer flags | Rapptz | 2019-12-21 | 1 | -0/+8 |
| | | |||||
| * | Add User.system and MessageFlags.urgent | Rapptz | 2019-12-21 | 1 | -1/+6 |
| | | |||||
| * | Return 'username' instead of 'name' | Merlintor | 2019-12-05 | 1 | -1/+1 |
| | | |||||
| * | Adjust BASE urls to have no trailing slash (consistency) | Devon R | 2019-11-15 | 1 | -1/+1 |
| | | |||||
| * | Return invites as https, various URL normalization | Devon R | 2019-11-15 | 1 | -1/+1 |
| | | |||||
| * | Added Optional to ClientUser.premium_type type hint | Willy | 2019-11-15 | 1 | -1/+1 |
| | | |||||
| * | Disambiguate and normalize documentation for non-bot only methods | Tyler | 2019-08-11 | 1 | -15/+15 |
| | | |||||
| * | Fix: another capitalization issue in docstring | Reece Dunham | 2019-07-18 | 1 | -1/+1 |
| | | |||||
| * | Fix return type docstring for BaseUser.default_avatar | Steve C | 2019-07-18 | 1 | -1/+1 |
| | | |||||