aboutsummaryrefslogtreecommitdiff
path: root/discord/member.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix issues with imports causing NameErrorsJosh2021-05-121-0/+2
|
* Type up **kwargs of various methods Nadir Chowdhury2021-05-101-6/+43
|
* `activities` is no longer nullableNadir Chowdhury2021-04-171-2/+2
|
* Rewrite Asset designRapptz2021-04-161-3/+3
| | | | | | | | | | | | | | | | | | | | | | | 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.
* Add note to member docs about Spotify limitationnumbermaniac2021-04-141-0/+13
|
* Remove User.permissions_inRapptz2021-04-111-23/+1
| | | | This seemed to only cause confusion.
* Remove Member related handling in PRESENCE_UPDATERapptz2021-04-111-11/+0
|
* Add `__all__` to remaining modulesNadir Chowdhury2021-04-071-0/+5
|
* Convert datetimes to aware datetimes with UTC.Rapptz2021-04-041-3/+3
| | | | | Naive datetimes will now be interpreted as local time throughout the library.
* Modernize code to use f-stringsRapptz2021-04-041-8/+7
| | | | | This also removes the encoding on the top, since Python 3 does it by default. It also changes some methods to use `yield from`.
* Implement StageChannel and related methodsNadir Chowdhury2021-04-031-5/+90
|
* [docs] copy signature from overridden and inherited methodsSebastian Law2021-03-291-1/+1
|
* Make `await` text appear in async Member method docsSebastian Law2021-03-241-2/+8
|
* Code optimisations and refactoring via SourceryNadir Chowdhury2021-02-241-7/+3
|
* Fix User public flags not updatingLucas2021-01-171-3/+3
|
* Change copyright year to presentNihaal Sangha2021-01-151-1/+1
|
* Update add_roles docstring to mention role order.Perry Cate2021-01-141-2/+4
|
* Add support for Member.pending boolean attributeRapptz2020-12-181-1/+13
|
* [chore] Remove redundant importsNadir Chowdhury2020-11-281-1/+1
| | | This also removes the historical patch for NullHandler implemented in bbf1c54, as it has been available since Python 3.1.
* Intern status and overwrite stringsRapptz2020-09-231-4/+5
|
* Allow finer grained control over the member cache.Rapptz2020-09-231-0/+8
|
* Handle user updates within GUILD_MEMBER_UPDATERapptz2020-09-231-9/+12
|
* Fix and add documentationMichael2020-09-231-1/+6
|
* Completely update member references from message inner members.Rapptz2020-09-171-1/+7
| | | | Fixes #5819
* Fix Member.joined_at documentationrodovia2020-09-091-2/+2
|
* Documentation formattingSkezza2020-06-301-2/+2
|
* Fix various inconsistencies within the documentation (#5067)Sebastian Law2020-06-281-2/+7
|
* Removes the caching behavior of Member.rolesMichael H2020-06-041-12/+7
| | | | | | - fixes 4087 - This intentionally uses some internals in both Member.roles and Member.top_role to retain as much performance as possible while removing the cache
* Add support for public user flagsJohnyTheCarrot2020-05-291-1/+1
|
* Fix colour properties being displayed as methods in the documentation.kittenswolf2020-05-031-2/+2
|
* Drop superfluous zero in version related changes in the documentationRapptz2020-01-211-3/+3
|
* Bump copyright year to 2020Rapptz2020-01-191-1/+1
| | | | Closes #2510
* Expose _ActivityTag as BaseActivity to easily refer to.Rapptz2020-01-141-2/+2
|
* Cache member.roles access to avoid surprising performance trapsRapptz2020-01-061-2/+12
| | | | | Without the cache, repeated access could be accidentally quadratic or worse.
* Fix Member.mentioned_in returning True if in separate guildsRapptz2020-01-061-3/+5
|
* Added Optional to VoiceState.channel typeWilly2019-11-151-1/+1
|
* Add self_stream property to VoiceState object.Joshua B2019-09-191-2/+8
|
* Use lower level Guild.owner_id for permission resolution.Rapptz2019-07-101-1/+1
|
* Fix NameError in member upgrade codeRapptz2019-07-101-1/+1
|
* Add upgraded Member to Message.mentions in case of no cache.Rapptz2019-07-101-0/+11
|
* Different method of upgrading user instancesRapptz2019-07-101-5/+1
|
* Set premium_since when copying and updating MemberSnowyLuma2019-06-111-0/+2
|
* Improve documentationNCPlayz2019-06-071-16/+24
|
* Add Member.premium_since to denote member boost date.Rapptz2019-06-041-1/+5
|
* Use attrgetter to speed up Member attribute access by 2x.Rapptz2019-05-251-2/+5
|
* Add support for voice kicking.Rapptz2019-04-301-5/+13
|
* Fix long-standing issue with user updates not dispatching properly.Rapptz2019-04-081-4/+24
| | | | | | | | | | | | | | | | | | | | | | This fix is long coming. For a long time due to the addition of a global user cache, the on_member_update event would only have the updated user in the very first dispatch due to a quirk in the reference only being updated once. In order to fix this issue two things had to change: 1. There had to be a new event, `on_user_update` to complement the equivalent member event. 2. Unnecessary copies of User had to be removed to compensate for the performance hit from the diffing. While doing these two fixes I also re-evaluated some more unnecessary copies done during the PRESENCE_UPDATE to add member case while fetch_offline_members=False is set or due to chunking issues. The number of copies was brought down from 2 to 1, discounting the original Member creation. Unsure on the benefits of this one, however. N.B: this doesn't change the pre-existing behaviour of on_member_update
* GUILD_MEMBER_UPDATE no longer does actual user updates.Rapptz2019-04-081-7/+1
| | | | | This had been delegated to PRESENCE_UPDATE a long time ago, unfortunately.
* Don't use an enum when unnecessary in Member._client_statusRapptz2019-04-081-1/+1
|
* Organise documentationNCPlayz2019-03-191-13/+13
|