Closed TheDevYellowy closed 1 month ago
edited the code a little bit, I had it check 10 chars further then the start of the build number for a small bit of future proofing
there is a bit of problem, if djs-sb is used to run many bots it will spam a lot to discord and it will run very slow, it would be better if it is implemented as an api (like dpy-self)
That makes sense
Can it become optional in ClientOptions?
Can it become optional in ClientOptions?
wdym by this, I changed the function to be static so people don't have to initialize the Client class they just need to do the following and it'll return the build number. or do you mean that if the option is selected it'll automatically update the build number
const { Client } = require("discord.js-selfbot-v13");
(async () => {
const build_number = await Client.getClientBuildNumber();
})();
nvm I'm about to change it to automatically use the release_channel property in options if the user doesn't specify a release channel, which means it can't be static
Add the code from marioparaschiv that is found in this issue comment to the login function before websocket establishment