aboutsummaryrefslogtreecommitdiff
path: root/discord/server.py
Commit message (Collapse)AuthorAgeFilesLines
* Document undocumented Server.voice_client property.Rapptz2016-09-251-0/+3
|
* Add Server.role_hierarchy to get the current role hierarchy.Rapptz2016-09-211-0/+9
|
* Add support for server verification levels.Rapptz2016-09-121-8/+7
| | | | | | This adds a new enum named VerificationLevel to denote said verification level. This enum will also be used in the Client.edit_server calls instead of the undocumented int parameter.
* Add custom emoji support.Khazhismel2016-07-311-1/+5
|
* Fix voice state update issue in on_voice_state_updateRapptz2016-07-231-2/+2
| | | | | | | | | Bug was caused to the shallow copy not copying over the VoiceState information embedded into the copy. This would mean that when the event is called, before and after voice state information is essentially equivalent. The solution to fix this is to also copy the VoiceState objects.
* Add Server.mfa_level to query a server's 2FA requirement.Rapptz2016-06-281-1/+6
|
* Fix voice states being overwritten after a GUILD_SYNC.Rapptz2016-06-281-12/+13
| | | | | | | | | This was a two-fold problem. The first of which involved the overwriting of members during a GUILD_SYNC. Since we are requesting a chunk anyway, we have all the member references we need without actually chunking. The second problem came from the order. We were doing a GUILD_SYNC and then doing the chunking requests. We should do the GUILD_SYNC after the chunking in order to just update presences.
* Support for v5 Gateway.Rapptz2016-06-221-17/+23
|
* Document Server.largeRapptz2016-06-121-0/+4
|
* Update positions when a role is added or removed.Rapptz2016-06-011-0/+21
|
* Add Role.server attribute.Rapptz2016-06-011-1/+1
| | | | This breaks events that expected a server parameter for the role events.
* Handle nicknames in Server.get_member_namedRapptz2016-04-291-1/+9
|
* Fix handling of unavailable servers in READYKhazhismel Kumykov2016-04-041-1/+1
|
* Add Server.get_member_named to help with name + discriminator lookups.Rapptz2016-04-011-0/+38
|
* Server.icon_url uses API url instead of the CDN.Rapptz2016-03-251-1/+1
|
* Add created_at properties for Server and User.Rapptz2016-03-061-0/+5
|
* Remove Server.me from __slots__ since it is a property now.Rapptz2016-03-051-1/+1
|
* Remove request_offline option.Rapptz2016-02-141-1/+5
|
* Update owner references when we get a chunk.Rapptz2016-02-141-2/+3
|
* Offline members are now added by default automatically.Rapptz2016-02-141-3/+5
| | | | | This commit adds support for GUILD_MEMBERS_CHUNK which had to be done due to forced large_threshold requirements in the library.
* Add Server.member_count property for actual member count.Rapptz2016-02-131-1/+8
| | | | This will always work regardless of chunking or not.
* Remove unneeded owner_id assignment.Rapptz2016-01-181-2/+0
|
* Support upcoming guild ownership transfership change.Rapptz2016-01-181-4/+3
| | | | Thanks to Jake.
* Handle cases where people put False-like values for game presences.Rapptz2016-01-111-2/+2
|
* Change internal update functions to have a leading underscore.Rapptz2016-01-111-1/+1
|
* Fix conflicts with __slots__ and the new properties under Server.Rapptz2016-01-081-1/+1
|
* Document the breaking change with the new dictionary storage change.Rapptz2016-01-081-2/+2
| | | | | Since the only things dict views support are iteration we should advise people who want the old behaviour to change it to a list.
* document public get_ methods and make others privateSteven Berler2016-01-081-6/+8
|
* performance improvementsSteven Berler2016-01-081-8/+36
| | | | | | | | | | | | | | | | | | | | | Replaced server member lists, channel lists, and private channel lists with dicts. This allows O(1) lookups and removes (previously it would be an O(N) operation to lookup or remove). I did pretty extensive testing and benchmarking to compare the performance of using lists vs using dicts. Iterating through lists to find an item is only faster in the average case for extremely small lists (less than 3 items). For 100 items, using a dict is about 10 times faster on average (and about 100 times faster for 1000 items). The overhead in dicts is in memory usage and initial creation time. Creating and populating a dict is about 2 to 3 times slower than creating and appending items to a list. However this cost is still tiny. For 1000 items this equates to about a 70 microsecond difference (on an i7 CPU) for populating the entire dict. The memory overhead for a dict (compared to a list) is about 25-60 KB per 1000 items (can vary depending on dict resizing). Originally I wanted to use OrderedDicts to presereve order, but in my testing OrderedDicts have about 6x the memory overhead compared to normal dicts.
* Add missing roles attribute to Server.__slots__Rapptz2016-01-071-1/+1
|
* Add __slots__ for missing classes that didn't have it.Rapptz2016-01-061-2/+6
|
* Unavailable guilds get added to cache.Rapptz2016-01-061-2/+2
|
* Update license of files to 2016.Rapptz2016-01-041-1/+1
|
* Add game data class, replace game_id.Khazhismel2015-12-231-2/+3
|
* All update related events now pass in the previous state.Rapptz2015-12-171-1/+3
|
* Most data classes now support hashing.Rapptz2015-12-171-2/+4
|
* Add Server.me attribute to access the Member version of Client.user.Rapptz2015-12-161-0/+3
|
* Make more things into properties.Rapptz2015-12-161-6/+7
| | | | | | A lot of the expensive getters were transformed into cached properties instead. A lot of things that were properties were transformed into properties as well.
* All data classes now support !=, == and str(obj).Rapptz2015-12-131-1/+17
|
* Changed functions that return a constant value into properties.Rapptz2015-12-131-0/+1
|
* Handle GUILD_UPDATERapptz2015-12-061-5/+10
|
* Add enumerators instead of strings.Rapptz2015-12-041-30/+30
| | | | Changes channel type, status and server region into 3.4 enums.
* "An array" -> "A list" for documentation purposes.Rapptz2015-11-281-3/+3
|
* Remove afk_channel_id and replace it with afk_channel.Rapptz2015-11-281-3/+4
|
* Member.roles array now has the default role as the first element.Rapptz2015-11-281-1/+2
|
* Move server parsing code from Client to Server.Rapptz2015-11-281-13/+57
|
* icon_url and get_default_channel in ServerHla2015-11-161-3/+14
|
* Split data classes into more files.Rapptz2015-10-271-77/+0
|
* Support unavailable servers.Rapptz2015-10-241-0/+8
|
* Fix bug with member voice state update.Rapptz2015-10-171-3/+4
|