aboutsummaryrefslogtreecommitdiff
path: root/discord/member.py
Commit message (Collapse)AuthorAgeFilesLines
* Update Member.joined_at on MESSAGE_CREATE and document it can be None.Rapptz2019-02-271-2/+12
| | | | Fixes #1638
* Add self_video property to VoiceStateDerpyChap2019-02-181-2/+5
|
* Bumped copyright years to 2019.Dante Dam2019-01-281-1/+1
|
* Fix some lingering attribute setting issues.Rapptz2018-12-141-0/+5
|
* Add support for mobile indicators and per-client statuses.Rapptz2018-12-141-7/+34
|
* Actually drop copy.copy in MemberHornwitser2018-11-241-6/+0
| | | | | | Remove the old and slow Member._copy implementation that was left over by accident in 095f0ec. Since it was defined later it overrode the new implementation and rendered it moot.
* Add support for multiple activitiesSnowyLuma2018-11-241-6/+18
|
* Revert "Rework documentation to not duplicate inherited members."Rapptz2018-10-111-3/+1
| | | | This reverts commit 96981210b3415e15446db0b702b07fef25c8b680.
* Rework documentation to not duplicate inherited members.Rapptz2018-10-031-1/+3
| | | | This will probably be reverted in 1 week.
* Optimise some member and user related routines.Rapptz2018-09-241-4/+19
| | | | | | | * Skip user update if possible * Drop copy.copy in favour of manual copy Credit to Hornwitser for these findings.
* Change internal representation of roles in Member and Emoji.Rapptz2018-09-241-14/+20
| | | | | | | | | | | | | | | Introduce a new internal type, SnowflakeList, which has better memory footprint over a regular list or set of roles. It is suspected that there will be a 9x reduction of memory for every Emoji instance and a 48 byte saving per Member instance. However, these savings will probably only be evident on larger bots. As a consequence of this change, Member.roles is now computed lazily. Currently I am not sure if I want to do the initial sorting on the SnowflakeList for Member, as this comes with a O(n log n) cost when creating a Member for little purpose since SnowflakeList.has is not overly relied on. If CPU time becomes an issue this might change.
* Change internal role storage in Guild to a dict instead of a list.Rapptz2018-09-241-2/+2
| | | | | | | | | | | | | | | | This adds the following APIs: * Guild.get_role This removes the following APIs: * Guild.role_hierarchy To compensate for the removed APIs, Guild.roles is now a sorted list based on hierarchy. The first element will always be the @everyone role. This speeds up access at the cost of some memory, theoretically.
* Change docstrings to raw-stringsBeatButton2018-09-141-2/+2
|
* Correct Member.__hash__Mitchell Ferree2018-08-231-1/+1
| | | Make Member.__hash__ just use whatever its User object's hash impl is.
* [lint] Fix incorrect and inconsistent whitespaceHornwitser2018-08-221-2/+2
| | | | Adjust whitespace to be consistent with the rest of the library.
* [lint] Remove unused importsHornwitser2018-08-221-1/+0
| | | | Left over from various refactoring and rewrites.
* Drop support for Python 3.4 and make minimum version 3.5.2.Rapptz2018-06-101-27/+19
|
* Split Game object to separate Activity subtypes for Rich Presences.Rapptz2018-03-051-12/+11
| | | | | | | | | | | This is a massive breaking change. * All references to "game" have been renamed to "activity" * Activity objects contain a majority of the rich presence information * Game and Streaming are subtypes for memory optimisation purposes for the more common cases. * Introduce a more specialised read-only type, Spotify, for the official Spotify integration to make it easier to use.
* Add intersphinxTobotimus2018-01-061-8/+8
|
* Attempt to change how member functions are detected for Member objectsRapptz2017-09-041-1/+1
|
* Sort roles by hierarchy instead of by ID.Rapptz2017-08-291-18/+9
| | | | Fixes #741
* Fix docstringEthan2017-08-221-1/+1
|
* Add atomic keyword argument for member role editing operations.Rapptz2017-08-211-11/+33
| | | | | | | | | | | | | | | This affects: * Member.add_roles * Member.remove_roles This is the main attempt of fixing long standing bugs like #56. Since cache consistency is too hard to ask for due to eventual consistency and this generally being one of the only main roadblocks that the cache ruins, it's best to just implement it in terms of the atomic endpoint instead. Fixes #56
* Support for discord.Object in Member.remove_roles and Member.add_rolesRapptz2017-08-091-5/+8
|
* Properly sort roles and discard everyone role in Member.colour.Rapptz2017-06-241-2/+4
|
* Use Python3Lexer instead of PythonLexer for pygments.Rapptz2017-05-221-1/+1
|
* More broken Channel references.Rapptz2017-05-201-2/+2
|
* Make supported operations stand out more than attributes.Rapptz2017-05-201-10/+12
|
* 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-13/+17
|
* First pass at documentation reform.Rapptz2017-05-121-3/+3
|
* Allow comparison between User and Member instances again.Rapptz2017-05-101-1/+1
|
* Add support for audit log reasons.Rapptz2017-05-071-11/+19
| | | | Most routes now have a 'reason' keyword argument.
* Change some format usage to use %-formatting.Rapptz2017-05-041-2/+2
| | | | | Minor speed increase when we're not doing excessive attribute access or any type of formatting.
* Implement audit logs.Rapptz2017-04-301-2/+2
|
* Remove unused imports.Rapptz2017-04-181-1/+1
|
* Fix issue with members not copying correctly.Rapptz2017-03-051-0/+6
|
* Forward keyword arguments in Member.banRapptz2017-02-211-2/+2
|
* Fix Member.display_name to work.Rapptz2017-02-101-0/+10
|
* Fix Member.permissions_in passing in the wrong self parameter.Rapptz2017-01-311-0/+16
|
* Make all public is_ functions into methods instead of properties.Rapptz2017-01-291-3/+3
|
* Add missing int casts in many different events in the state.Rapptz2017-01-281-5/+0
| | | | Also remove redundant role parsing in Member._update_roles.
* Update copyright year to 2017.Rapptz2017-01-201-1/+1
|
* Add support for relationships.Rapptz2017-01-201-2/+3
|
* Make ClientUser separate from a regular User.Rapptz2017-01-191-2/+2
| | | | This removes Client.edit_profile in favour of ClientUser.edit.
* Remove _get_guild_id from Messageable ABC.Rapptz2017-01-141-3/+0
|
* VoiceChannel.voice_members is now computed when needed.Rapptz2017-01-081-1/+4
|
* Fix bug that made member roles go missing.Rapptz2017-01-031-10/+19
|
* Make User and Member messageable.Rapptz2017-01-031-1/+11
|