-
Notifications
You must be signed in to change notification settings - Fork 131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Where did the syncStatus ClientOption go? #1156
Labels
Feature
Request a new feature
Comments
to be honest I have no clue as to where it went but I was able to sort of replicate it, I haven't tested the actual changing of status but I did test that it does decode correctly const { PreloadedUserSettings } = require("discord-protos");
// do all the client initialization
client.on("unhandledPacket", (packet) => {
if (typeof packet.t !== "string") return;
if (packet.t == "USER_SETTINGS_PROTO_UPDATE") {
if (packet.d.settings.type == 1) {
const decoded = PreloadedUserSettings.fromBase64(packet.d.settings.proto);
client.user.setStatus(decoded.status.status.value);
}
}
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Which package is the feature request for?
The core library
Feature
The syncStatus was a good option, now when we use the library in our accounts it will keep it online even if we don't want to!
Ideal solution or implementation
What was it replaced with or can it be returned?
Alternative solutions or implementations
No response
Other context
No response
The text was updated successfully, but these errors were encountered: