diff options
| author | Rapptz <[email protected]> | 2020-11-21 22:40:19 -0500 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2020-11-21 22:42:59 -0500 |
| commit | 431ee8794b5c67048b4709549ae1fd931488a1e2 (patch) | |
| tree | 2d11a0aa4f7f97aeb1b62cd7630c4fd45393eb06 /discord/ext | |
| parent | Bump version for development purposes (diff) | |
| download | discord.py-431ee8794b5c67048b4709549ae1fd931488a1e2.tar.xz discord.py-431ee8794b5c67048b4709549ae1fd931488a1e2.zip | |
Fix error with templates not having access to member cache flags.
This also changes the attribute from having an underscore
Fix #5986
Diffstat (limited to 'discord/ext')
| -rw-r--r-- | discord/ext/commands/converter.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/discord/ext/commands/converter.py b/discord/ext/commands/converter.py index adec41dc..2ff05843 100644 --- a/discord/ext/commands/converter.py +++ b/discord/ext/commands/converter.py @@ -129,7 +129,7 @@ class MemberConverter(IDConverter): """ async def query_member_named(self, guild, argument): - cache = guild._state._member_cache_flags.joined + cache = guild._state.member_cache_flags.joined if len(argument) > 5 and argument[-5] == '#': username, _, discriminator = argument.rpartition('#') members = await guild.query_members(username, limit=100, cache=cache) @@ -140,7 +140,7 @@ class MemberConverter(IDConverter): async def query_member_by_id(self, bot, guild, user_id): ws = bot._get_websocket(shard_id=guild.shard_id) - cache = guild._state._member_cache_flags.joined + cache = guild._state.member_cache_flags.joined if ws.is_ratelimited(): # If we're being rate limited on the WS, then fall back to using the HTTP API # So we don't have to wait ~60 seconds for the query to finish |