aboutsummaryrefslogtreecommitdiff
path: root/discord/user.py
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
|
* Add notes to all relationship endpoints that they don't work on bots.Rapptz2019-04-141-10/+74
|
* Fix copy paste error in ClientUser.edit_settingsRapptz2019-04-061-2/+2
|
* Redesign asset retrieval in the library.NCPlayz2019-04-061-27/+7
| | | | | | | | | | | Most assets now return a new class named `Asset`. This allows for the assets to be consistently saved via a `save` method instead of special casing for `Attachment`. `AppInfo` is no longer a namedtuple it is a fully documented dataclass, as well as having the state attached to it. Fixes #1997
* Added functionality to edit user settingsCapnS2019-03-281-0/+107
| | | | | | | | | | | | Changing docs to fit other parts of the lib Co-Authored-By: CapnS <[email protected]> Removing Type Checking Made all of Rapptz's suggested changes Removing imports that are no longer needed
* Organise documentationNCPlayz2019-03-191-27/+27
|
* Add PremiumType enumeration and ClientUser.premium_typeLiam H2019-02-121-2/+5
|
* Added User.mutual_friends()CapnS2018-12-141-0/+21
|
* add support for Bug Hunter and Early Supporter flagsbmintz2018-11-241-4/+12
|
* [lint] Fix import orderHornwitser2018-11-241-4/+3
| | | | | Reorder imports to be consistenly grouped by standard library, third party library, and local modules in that order thoughout the library.
* Revert "Rework documentation to not duplicate inherited members."Rapptz2018-10-111-4/+0
| | | | This reverts commit 96981210b3415e15446db0b702b07fef25c8b680.
* Rework documentation to not duplicate inherited members.Rapptz2018-10-031-0/+4
| | | | This will probably be reverted in 1 week.
* Optimise some member and user related routines.Rapptz2018-09-241-0/+13
| | | | | | | * Skip user update if possible * Drop copy.copy in favour of manual copy Credit to Hornwitser for these findings.
* Add colour attribute for BaseUserMusicOnline2018-09-161-0/+12
|
* Fix up the Sphinx strings causing warnings.Rapptz2018-09-151-4/+4
|
* Change docstrings to raw-stringsBeatButton2018-09-141-3/+3
|
* Call Http.start_group() in ClientUser.create_group()Bryan Forbes2018-08-281-1/+1
|
* Added hypesquad house functionalitymental2018-08-221-1/+21
|
* [lint] Fix types used for __slots__ and __all__Hornwitser2018-08-221-1/+1
| | | | | Stay consistent with the rest of the library and use lists for module __all__ values and tuples for class __slots__ attributes.
* [lint] Remove unused importsHornwitser2018-08-221-1/+0
| | | | Left over from various refactoring and rewrites.
* Revert "Ensure gif avatar urls end in `.gif`"khazhyk2018-07-201-4/+1
| | | | | | | This reverts commit 456390f417e63126b08ac52fa8ee49ca68cefed8. This commit isn't needed anymore - the image proxy now properly handles gifs that do not end in .gif
* Drop support for Python 3.4 and make minimum version 3.5.2.Rapptz2018-06-101-27/+18
|
* Add intersphinxTobotimus2018-01-061-21/+21
|
* Ensure gif avatar urls end in `.gif`khazhyk2018-01-061-1/+4
| | | | | | | This is a workaround for discord having trouble animating gifs if the url does not end in exactly `.gif`. Since avatar_url is common for thumbnails etc., adding this workaround here is handy, and likely restores expected behavior (animated avatars animating).
* Fix Spelling ErrorMippy (William)2017-11-121-1/+1
|
* is_avatar_animated should always return boolkhazhyk2017-10-241-1/+1
| | | | Was returning None when User.avatar was None
* Rename avatar_is_animated to is_avatar_animated and make it a method.Rapptz2017-07-271-5/+4
|
* avatar_url_as improvementskhazhyk2017-07-251-8/+34
| | | | | | | | | | | | | | | | | | | static_format will only apply to static (not animated) avatars. Makes it easier to grab gif-or-'format' of an avatar. Defaults to 'webp' This is for a similar usecase to avatar_url_as(format=None), except one can specify the non-animated format, instead of always using webp. add User.avatar_is_animated property. add validation for avatar_url_as, since invalid arguments result in a url which will return 415, which can be confusing for a user. (They just see a blank page) Discord accepts size=16-2048, but images cap at 1024px, so accept 16-1024 Discord accepts "jpg", "jpeg", "png", "gif", and "webp", *unless* the avatar is not animated, in which case "gif" is not supported. :\
* Add support for user flags in Profile.Rapptz2017-06-301-3/+27
|
* Use Python3Lexer instead of PythonLexer for pygments.Rapptz2017-05-221-1/+1
|
* More broken Channel references.Rapptz2017-05-201-1/+1
|
* Make supported operations stand out more than attributes.Rapptz2017-05-201-16/+20
|
* Minor speedup when doing comparisons.Rapptz2017-05-181-2/+4
| | | | Shred 2 getattr calls + 1 global lookup to 1 global lookup.
* Fix User == Member comparisons.Rapptz2017-05-181-2/+2
|
* Use describe instead of tables for supported operations.Rapptz2017-05-131-26/+30
|
* First pass at documentation reform.Rapptz2017-05-121-2/+2
|
* Fix premium key being missing in profile endpoint.Rapptz2017-03-131-2/+3
|
* Add User.is_blocked and User.is_friend shortcut methods.Rapptz2017-02-271-0/+14
|
* Add User.avatar_url_as to convert a user's avatar.Rapptz2017-02-221-5/+37
|
* Fix Member.display_name to work.Rapptz2017-02-101-1/+1
|
* Better group DM support.Rapptz2017-02-091-0/+39
|
* Add ClientUser.friends and ClientUser.blockedRapptz2017-01-271-0/+10
|