mirror of
https://github.com/stoatchat/javascript-client-sdk.git
synced 2026-07-21 12:35:21 -04:00
revolt.js throws exception when uncached user leaves a server #8
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 @sussycatgirl on GitHub (Dec 11, 2021).
Originally assigned to: @sussycatgirl on GitHub.
It appears that when a user leaves a server (or gets kicked/banned) and is not already cached, revolt.js attempts to fetch that user. If it is unable to fetch it (Usually because of missing permission), an exception is thrown.
This is not a big issue in browser applications, but it almost certainly causes node.js applications such as bots to exit. (See attached video)
https://user-images.githubusercontent.com/26145882/145674716-b32e540d-d5e4-4879-b012-9cb396dc9fcc.mp4