aboutsummaryrefslogtreecommitdiff
path: root/discord/state.py
Commit message (Collapse)AuthorAgeFilesLines
* Default MemberCacheFlags based on intentsRapptz2020-09-231-2/+2
|
* Pass default intents if not explicitly givenRapptz2020-09-231-0/+2
|
* Allow finer grained control over the member cache.Rapptz2020-09-231-6/+27
|
* Add Guild.chunk and deprecated Client.request_offline_membersRapptz2020-09-231-25/+32
|
* Fix timeouts due to hitting the gateway rate limitRapptz2020-09-231-2/+2
|
* Maximize the amount of concurrency while chunking.Rapptz2020-09-231-1/+13
| | | | | | In order to reduce our amount of backpressure we need to limit the amount of concurrent chunk requests we can have so the gateway buffer has some time to breathe.
* Speed up chunking for guilds with presence intent enabledRapptz2020-09-231-3/+8
|
* Maximize concurrency when chunking on AutoSharded clientsRapptz2020-09-231-21/+45
|
* All guilds require chunking if opting into itRapptz2020-09-231-6/+3
|
* Handle user updates within GUILD_MEMBER_UPDATERapptz2020-09-231-1/+5
|
* Rewrite chunking to work with intents.Rapptz2020-09-231-162/+77
| | | | | | | | This slows down chunking significantly for bots in a large number of guilds since it goes down from 75 guilds/request to 1 guild/request. However the logic was rewritten to fire the chunking request immediately after receiving the GUILD_CREATE rather than waiting for all the guilds in the ready stream before doing it.
* Change unknown cache log warnings from WARNING -> DEBUGRapptz2020-09-231-19/+19
|
* Add support for guild intentsRapptz2020-09-231-0/+8
|
* Implement VoiceProtocol lower level hooks.Rapptz2020-09-231-4/+10
| | | | | This allows changing the connect flow and taking control of it without relying on internal events or tricks.
* Update message references in AutoShardedConnectionStateRapptz2020-07-251-0/+23
| | | | Fixes #5133
* Add guild_ready_timeout to control the timeout of GUILD_CREATE streamRapptz2020-07-251-4/+8
| | | | | | | This also fixes a timing issue where READY would take far too long to load for big bot authors. Closes #4112
* Add shard related connection and resume events.Rapptz2020-07-251-0/+5
| | | | | | | These include: * on_shard_resumed * on_shard_connect * on_shard_disconnect
* Add before_identify_hook to have finer control over IDENTIFY syncingRapptz2020-07-251-1/+10
|
* Rewrite of AutoShardedClient to prevent overlapping identifyRapptz2020-07-251-0/+2
| | | | This is experimental and I'm unsure if it actually works
* Fix TypeError on missing shard_id kwargAnurag2020-06-071-2/+2
|
* Add user_ids fields for query_membersTarek2020-05-291-2/+2
|
* Fix TypeError in chunkerapple502j2020-05-231-1/+1
|
* state: use bytes.hex() instead of binascii.hexlify().decode()iomintz2020-05-101-2/+1
|
* Fix timeout issues with fetching members via query_membersRapptz2020-05-101-12/+25
| | | | | | | | | | | | This uses the nonce field to properly disambiguate queries. There's also some redesigning going on behind the scenes and minor clean-up. Originally I planned on working on this more to account for the more widespread chunking changes planned for gateway v7 but I realized that this would indiscriminately slow down everyone else who isn't planning on working with intents for now. I will work on the larger chunking changes in the future, should time allow for it.
* Decrement Guild.member_count even if member is not cachedRapptz2020-04-191-1/+1
| | | | Fix #4021
* Fix PartialEmoji.url.read for reactionsapple502j2020-04-181-1/+1
|
* Move log levels around to make INFO a little less noisyRapptz2020-04-061-3/+7
|
* animated key is never given to reaction_remove(_emoji)NCPlayz2020-04-061-3/+3
|
* Rename allowed mention parameters to allowed_mentionsRapptz2020-04-041-4/+4
|
* Add support for configuring allowed mentions per message or bot wide.Rapptz2020-04-041-0/+7
|
* Bump waiting time of GUILD_CREATE stream by number of shards waited.Rapptz2020-01-281-2/+3
| | | | | 2 seconds might be too short and cause it to finish waiting while other shards are still IDENTIFYing.
* Bump copyright year to 2020Rapptz2020-01-191-1/+1
| | | | Closes #2510
* Add support for clearing a specific reaction.Rapptz2020-01-171-0/+17
| | | | Closes #2440
* Add support for on_invite_create and on_invite_deleteRapptz2020-01-171-0/+9
|
* Expose _ActivityTag as BaseActivity to easily refer to.Rapptz2020-01-141-3/+3
|
* Rewrite on_ready delay to actually make sense and prevent heavy sleepRapptz2020-01-141-7/+15
|
* Fix issue with `shard_ready` not dispatching when not fetching offlineNCPlayz2020-01-141-12/+6
|
* Add `RawReactionActionEvent.member`NCPlayz2019-12-171-1/+9
|
* Fix all deprecation warnings for 3.8Rapptz2019-11-201-6/+6
|
* Fix regression with references being overwritten from the cache.Rapptz2019-11-201-1/+3
| | | | | | | A proper fix for this would be to just request presence information as well since the chunk request would probably be more up to date than the current cache. However this delta requires a little bit more work and will be done later.
* Move PartialEmoji over to a new namespace to avoid circular importsRapptz2019-11-201-1/+2
|
* Manually trigger GC in cases of large deallocations.Rapptz2019-11-181-0/+10
|
* animation field in reaction objects are not consistently availableRapptz2019-11-151-7/+7
|
* Actually add things to the message cache.Rapptz2019-08-271-2/+2
|
* Fix _get_message returning the message cache.Lorenzo2019-08-271-1/+1
|
* Allow disabling the message cache with max_messages=NoneRapptz2019-08-271-7/+15
| | | | | | This also changes the default to 1000 instead of 5000 since it can take some time for small bots to cycle through the default and they make up the majority of it.
* Add RawReactionActionEvent.event_type attribute.Rapptz2019-08-111-2/+2
| | | | This helps differentiate between reaction removal or addition.
* Proper boolean check for caching members.Rapptz2019-07-151-1/+1
|
* Add Guild.query_members to fetch members from the gateway.Rapptz2019-07-151-7/+43
|
* Allow complete disabling of the member cache.Rapptz2019-07-111-1/+4
|