aboutsummaryrefslogtreecommitdiff
path: root/discord/user.py
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Implement User.profile coroutine to get a user's profile.Rapptz2017-01-241-1/+37
|
* Update copyright year to 2017.Rapptz2017-01-201-1/+1
|
* Add support for relationships.Rapptz2017-01-201-2/+89
|
* Add ClientUser.premium boolean.Rapptz2017-01-201-1/+4
|
* Make ClientUser separate from a regular User.Rapptz2017-01-191-68/+207
| | | | This removes Client.edit_profile in favour of ClientUser.edit.
* Remove _get_guild_id from Messageable ABC.Rapptz2017-01-141-3/+0
|
* Remove extraneous unneeded hash calls.Rapptz2017-01-101-1/+1
|
* Return default avatar URL if an avatar is not given for User.avatar_urlRapptz2017-01-091-4/+7
| | | | Also use the CDN URL like Jake has always requested.
* Use CDN URL for default avatars.Rapptz2017-01-091-1/+1
|
* Move global user cache to a WeakValueDictionary.Rapptz2017-01-041-1/+1
|
* Make User and Member messageable.Rapptz2017-01-031-1/+36
|
* Add useful repr to all data classes.Rapptz2017-01-031-0/+3
|
* Rename Server to Guild everywhere.Rapptz2017-01-031-1/+1
|