aboutsummaryrefslogtreecommitdiff
path: root/discord/user.py
Commit message (Collapse)AuthorAgeFilesLines
* Add BaseUser.banner for all subclasses to access new bannersAlex Nørgaard2021-07-281-2/+50
|
* Use a specific tag type for member and user comparisonsRapptz2021-07-081-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 dictRapptz2021-07-071-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 typingRapptz2021-06-291-6/+9
|
* Remove extraneous __slots__ assignmentsRapptz2021-06-281-2/+2
|
* Type up **kwargs of various methods Nadir Chowdhury2021-05-101-4/+3
|
* Typehint WidgetJosh2021-05-091-0/+9
|
* Clarify ClientUser.verified docsDavid2021-04-301-1/+1
|
* Remove lingering User.avatar documentationRapptz2021-04-191-4/+0
|
* Add missing reprs to some objectsSteve C2021-04-171-0/+6
| | | These are WidgetMember, BaseUser, and DeletedReferencedMessage
* Rewrite Asset designRapptz2021-04-161-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_inRapptz2021-04-111-16/+0
| | | | This seemed to only cause confusion.
* Use f-strings in more places that were missed.Rapptz2021-04-081-8/+12
|
* Add `__all__` to remaining modulesNadir Chowdhury2021-04-071-0/+5
|
* Convert datetimes to aware datetimes with UTC.Rapptz2021-04-041-1/+2
| | | | | Naive datetimes will now be interpreted as local time throughout the library.
* Remove userbot functionalityRapptz2021-04-041-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-stringsRapptz2021-04-041-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.relationshipsNadir Chowdhury2021-03-281-0/+2
|
* Update create_dm documentation to say it's a coroutineAlex Nørgaard2021-03-241-1/+3
|
* Code optimisations and refactoring via SourceryNadir Chowdhury2021-02-241-5/+1
|
* Deprecate non-bot methodsNadir Chowdhury2021-02-231-0/+52
|
* Add User.mutual_guildssudosnok2021-02-201-0/+12
|
* Fix User public flags not updatingLucas2021-01-171-0/+1
|
* Change copyright year to presentNihaal Sangha2021-01-151-1/+1
|
* Fix and add documentationMichael2020-09-231-3/+13
|
* Documentation formattingSkezza2020-06-301-1/+1
|
* Fix various inconsistencies within the documentation (#5067)Sebastian Law2020-06-281-2/+2
|
* Fix incorrect class reference in documentationJohnyTheCarrot2020-06-041-1/+1
|
* Add support for public user flagsJohnyTheCarrot2020-05-291-1/+8
|
* Fix colour properties being displayed as methods in the documentation.kittenswolf2020-05-031-2/+2
|
* Fixes and improvements for v1.3 documentationHarmon2020-01-221-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 2020Rapptz2020-01-191-1/+1
| | | | Closes #2510
* Add Profile.system and Profile.team_user to query newer flagsRapptz2019-12-211-0/+8
|
* Add User.system and MessageFlags.urgentRapptz2019-12-211-1/+6
|
* Return 'username' instead of 'name'Merlintor2019-12-051-1/+1
|
* Adjust BASE urls to have no trailing slash (consistency)Devon R2019-11-151-1/+1
|
* Return invites as https, various URL normalizationDevon R2019-11-151-1/+1
|
* Added Optional to ClientUser.premium_type type hintWilly2019-11-151-1/+1
|
* Disambiguate and normalize documentation for non-bot only methodsTyler2019-08-111-15/+15
|
* Fix: another capitalization issue in docstringReece Dunham2019-07-181-1/+1
|
* Fix return type docstring for BaseUser.default_avatarSteve C2019-07-181-1/+1
|
* Different method of upgrading user instancesRapptz2019-07-101-0/+9
|
* Properly populate __slots__ for derived user types.Rapptz2019-07-091-2/+3
| | | | Fixes #2265
* Improve documentationNCPlayz2019-06-071-26/+33
|
* Fix stray colon in Asset related docstringsRapptz2019-06-041-2/+2
|
* Add support for animated guild icons.Rapptz2019-06-041-1/+1
|
* Fix wording in documentation for ClientUser.localeHarmon2019-05-211-1/+1
|
* Correct the documentation for methods and properties that return AssetsVexs2019-05-141-6/+6
|
* Fix USER_UPDATE changes not triggering for member instances.Rapptz2019-04-281-13/+23
| | | | Also add a ClientUser.locale attribute.
* Improve performance of value -> enum by about 5x.Rapptz2019-04-151-1/+1
|