Skip to content

Stable release

Latest
Compare
Choose a tag to compare
@sentinelb51 sentinelb51 released this 21 Jul 16:14
· 35 commits to main since this release

Fixes a critical error where bots would 401 due to incorrect headers. While revolt's documentation shows X-Session-Token as the auth header, X-Bot-Token is required instead. Both will be set as the library does not know if it's acting as a self-bot or not.

In the future, maybe during the initial handshake we could fetch the user, then the request method can determine if we're a self-bot by checking s.State.User?