Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: handle
public_flags
value for Message.author
when member cac…
…he is disabled (#870) The `Message.__init__ -> Message._handle_member -> Member._from_message` path calls `User._to_minimal_user_json`, which previously didn't copy over the user's `public_flags` value. With the member cache (and therefore also the user cache) enabled, this isn't an issue as `Member.__init__` uses the cached user and not the (previously incomplete) user data. With the cache disabled, the user data gets parsed, which didn't include that value. To reproduce, just `print(ctx.author.public_flags)`. Co-authored-by: arl <[email protected]> Signed-off-by: arl <[email protected]>
- Loading branch information