mirror of
https://github.com/stoatchat/python-client-sdk.git
synced 2026-08-24 11:22:54 -04:00
Support persistent member mention after member leaves guild. (member.id.user) #41
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 @BoQsc on GitHub (Oct 30, 2024).
Describe the bug

As you might know, after a guild member leaves your guild; and you refresh your web browser, you are left with nothing but a weird mention handle.
To resolve this, on revolt.js project we would use
member.id.user:However
member.id.useris clearly not existant in revolt.py and I wonder how to achieve the same result here.@Zomatree commented on GitHub (Oct 30, 2024):
The user id is used in both libraries and are the exact same, it depends on whether the user's client has the user cached or not, if there is no shared servers or relationship then they won't them cached, this is not something which can be changed library side, the same would happen in revolt.js as well if they are no longer cached.
@BoQsc commented on GitHub (Oct 30, 2024):
@Zomatree Have you tested the suggested code line in a revolt.js project?
@Zomatree commented on GitHub (Oct 31, 2024):
The ID is the exact same, the user ID is used in both.
@BoQsc commented on GitHub (Oct 31, 2024):
@Zomatree No, I only asked you to answer if you tested it yourself or not. I'm aware of what you are saying. I seem to be getting different results than what you are explaining. The main post still stands as working and result is different than regular user ID, even if it's same ID, there might be something that do allow
member.id.userto keep minimal cache of the user. The mention if clicked: It might no longer show the the most recent profile information, but all other cached data is left as available and mention still keeps on working after guild member leaves.It keeps on showing member mention, even if they are no longer a friend or related.
@Zomatree commented on GitHub (Nov 1, 2024):
This is dependant on the clients cache not anything to do with the library, I cannot control it nor can revolt.js