mirror of
https://github.com/stoatchat/python-client-sdk.git
synced 2026-07-22 02:25:22 -04:00
Role cache not populated properly for roles created during the lifetime of the client. #17
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @LeoCx1000 on GitHub (Mar 26, 2023).
Describe the bug
When creating a role whilst the client is running, the internal cache does not populate.
To Reproduce
Expected behaviour
Role cache gets populated correctly with the newly created role.
Actual behaviour
The role does not seem to be in the cache. Actions involving this role will raise a KeyError:
When adding this newly-created role to the user
When deleting the role
Library version
0.1.10Can also be reproduced when installing directly from the repository.
@Zomatree commented on GitHub (Mar 26, 2023):
Fixed in https://github.com/revoltchat/revolt.py/commit/e99b6edee3980875009266b89774f303b287cf11.