Skip to content
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

Open
Amir-78 opened this issue Apr 24, 2024 · 1 comment
Open

Where did the syncStatus ClientOption go? #1156

Amir-78 opened this issue Apr 24, 2024 · 1 comment
Labels
Feature Request a new feature

Comments

@Amir-78
Copy link

Amir-78 commented Apr 24, 2024

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

@Amir-78 Amir-78 added the Feature Request a new feature label Apr 24, 2024
@TheDevYellowy
Copy link
Contributor

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
npm i discord-protos

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
Labels
Feature Request a new feature
Projects
None yet
Development

No branches or pull requests

2 participants