bug: Focus isn't allowed in api.patch "/users/@me" #18

Closed
opened 2026-02-16 12:26:47 -05:00 by yindo · 1 comment
Owner

Originally created by @ghost on GitHub (Sep 30, 2022).

What happened?

So apparently the focus presence isn't defined in the api.patch function, returning a typeerror since it doesn't match "Online" | "Idle" | "Busy" | "Invisible" | undefined | null.

Screenshot_20220930_071417

But when testing, It does indeed change the status to Focus.

Screenshot_20220930_071500

Originally created by @ghost on GitHub (Sep 30, 2022). ### What happened? So apparently the focus presence isn't defined in the api.patch function, returning a typeerror since it doesn't match `"Online" | "Idle" | "Busy" | "Invisible" | undefined | null`. ![Screenshot_20220930_071417](https://user-images.githubusercontent.com/81704775/193257968-6afbaad0-10be-4a40-a50e-6546abb54695.png) But when testing, It does indeed change the status to Focus. ![Screenshot_20220930_071500](https://user-images.githubusercontent.com/81704775/193258086-d2e956bb-ee99-4761-a4df-8707abdc893f.png)
yindo added the bug label 2026-02-16 12:26:47 -05:00
yindo closed this issue 2026-02-16 12:26:47 -05:00
Author
Owner

@ghost commented on GitHub (Sep 30, 2022):

I made the issue into the wrong repo, check https://github.com/revoltchat/api/issues/24 for the issue

@ghost commented on GitHub (Sep 30, 2022): I made the issue into the wrong repo, check https://github.com/revoltchat/api/issues/24 for the issue
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: stoatchat/javascript-client-sdk#18