Commit Graph
3654 Commits
Author SHA1 Message Date
Florian SpießandGitHub ae65d75f96 Load member from guild_member_update dispatch 2020-10-17 23:19:02 -04:00
Rapptz 3daaadafdd [commands] Lazily fetch members in discord.Member converters
This makes commands taking members mostly work transparently without
much effort from the user.
2020-10-17 23:05:22 -04:00
Rapptz 61e25cb090 Ensure our own member is never evicted from the cache in any policy. 2020-10-17 23:02:03 -04:00
Rapptz 2509ca6a82 Add internal method to check if the websocket is currently ratelimited 2020-10-17 22:51:29 -04:00
Rapptz b07d474bd6 Fix attribute errors when timing out during chunking start-up 2020-10-17 22:02:44 -04:00
Rapptz 21ed9f61d2 Fix disconnect when trying to move to another voice channel.
Not overly proud of this implementation but this allows the library
to differentiate between a 4014 that means "move to another channel" or
"move nowhere". Sometimes the VOICE_STATE_UPDATE comes before the
actual websocket disconnect so special care had to be taken in that
case.

Fix #5904
2020-10-17 22:01:57 -04:00
Rapptz b91ddc6f4e Mark intent alias flags as actual aliases to skip them in __iter__
Fix #5945
2020-10-17 18:50:56 -04:00
Rapptz 1c03a4aac9 Evict keys when they're set to None in PermissionOverwrite
Fixes #5929
2020-10-17 01:59:00 -04:00
Rapptz b9e1bdf87e Properly insert at the end if position is not found when moving.
Fixes #5923
2020-10-17 01:52:35 -04:00
Rapptz d9acc2f491 Escape multi-line quotes properly
Fix #5897
2020-10-17 01:36:31 -04:00
JoshandGitHub 62040de6a7 Fix Colour.dark_theme docstring. 2020-10-16 22:51:50 -04:00
numbermaniacandGitHub d6df55afe2 logging.rst: Fix some typos and grammar errors 2020-10-16 22:46:31 -04:00
PythonCoderASandGitHub a40e20fa38 Use Hashable mixin for Message 2020-10-16 22:46:08 -04:00
Eric ChanandGitHub b96ed43082 Fix typo in event reference 2020-10-16 22:44:51 -04:00
ChristopherJHartandGitHub f308f34db1 Add note pointing to discord.AllowedMentions 2020-10-04 22:52:00 -04:00
Rapptz 9d183ecc30 Add intents to the issue template 2020-10-03 21:48:34 -04:00
Rapptz 022b5f7902 Update intent documentation to use defaults 2020-10-03 01:42:50 -04:00
XuaandGitHub 1066f42f1f Add intents to event reference 2020-10-01 04:42:32 -04:00
ZomatreeandGitHub 4bce41f7aa Add intents to examples 2020-10-01 04:42:08 -04:00
Rapptz 1518790c87 Some minor documentation fixes.
Make examples all mention where to put it for the unaware.
2020-09-28 21:42:32 -04:00
Rapptz 6d1bcf89da Version bump to v1.5.0 2020-09-28 20:57:10 -04:00
Rapptz 1919267e5c Add changelog for v1.4.2 2020-09-28 20:56:00 -04:00
Rapptz 821d833c11 Add changelog for v1.5.0 2020-09-28 20:33:15 -04:00
Rapptz bf42cf7232 Add warning if guilds intent is disabled. 2020-09-28 05:39:13 -04:00
Rapptz 1ebb52b139 Guard GUILD_MEMBER_ADD/GUILD_MEMBER_REMOVE from errors
If the guilds intent is disabled all guilds are unavailable. This means
we don't receive a member_count attribute and cannot update it.
2020-09-28 05:12:05 -04:00
Alex NørgaardandGitHub 759fb52e56 Update intents with small typo fixes 2020-09-27 19:08:19 -04:00
Rapptz 28e5b2a5e1 Add Client.intents to query the current intents
Closes #5854
2020-09-26 06:35:41 -04:00
NekokattandGitHub 3084deee18 Fixed incorrectly named 'Intent' class in doc.
`Intent.members` -> `Intents.members`.
2020-09-26 06:34:01 -04:00
Rapptz e4d7f44aa5 Make Intent class creation more intuitive 2020-09-24 09:00:54 -04:00
apple502jandGitHub dc6e9e7fd6 Fix typo in ValueError message 2020-09-24 09:00:47 -04:00
Rapptz de6c5ef675 More intent documentation.
Mention that you can downgrade the library to revert. Also mention
that intents need to be updated in the code as well as the developer
portal.
2020-09-24 02:00:47 -04:00
Rapptz 59d514fcdf More intent related documentation 2020-09-24 01:39:45 -04:00
Rapptz 005a80303f Add chunk_guilds_at_startup and deprecate fetch_offline_members 2020-09-24 01:17:04 -04:00
Sebastian LawandGitHub 2974663367 Fix typos in Intents documentation 2020-09-24 00:17:37 -04:00
apple502jandGitHub 0ebf5b2fa7 Add support for flag alias 2020-09-24 00:16:37 -04:00
Rapptz 7126f5a78c Use delete_message_days instead of delete-message-days 2020-09-23 08:03:06 -04:00
Rapptz e8eb19b2b4 Use /invites/ instead of /invite/ 2020-09-23 07:58:57 -04:00
Rapptz 2e06239d3c Add documentation for gateway intents 2020-09-23 03:21:22 -04:00
Rapptz 9dd4dc78c3 Mention potential Guild.member_count accuracy issues 2020-09-23 03:21:22 -04:00
Muhammad HamzaandRapptz 11aaa03ec2 Fix presence intent docstring 2020-09-23 03:21:21 -04:00
Rapptz 213f55ffc7 Disable voice cache in weird intent configurations. 2020-09-23 03:21:21 -04:00
Rapptz e644a5a060 Fix up wording in MemberCacheFlags exception 2020-09-23 03:21:21 -04:00
Rapptz 625a5c2a0b Some documentation fixes for MemberCacheFlags and Intents 2020-09-23 03:21:21 -04:00
Rapptz 8d5c05ed20 Default MemberCacheFlags based on intents 2020-09-23 03:21:21 -04:00
Rapptz bf8ca58996 Add a special exception for required privileged intents 2020-09-23 03:21:20 -04:00
Rapptz 4d813da9e1 Pass default intents if not explicitly given 2020-09-23 03:21:20 -04:00
Rapptz f2de794bde Intern status and overwrite strings 2020-09-23 03:21:20 -04:00
Rapptz 23ae084b8c Allow finer grained control over the member cache. 2020-09-23 03:21:20 -04:00
Rapptz e6edc44f3d Raise if member intent is not enabled 2020-09-23 03:21:19 -04:00
Rapptz ad917ca02d Don't cache members during guild start up if cache is disabled.
This is mainly a half-implemented commit. There are a few more places
where cache consistency is necessary. In the future there will
probably be a member cache policy enum that will be used and cache
consistency will be tackled in part of that larger refactoring.
2020-09-23 03:21:19 -04:00