aiko-chan-ai / discord.js-selfbot-v13

An unofficial discord.js fork for creating selfbots
https://discordjs-self-v13.netlify.app
GNU General Public License v3.0
777 stars 165 forks source link

AFK not working #1026

Closed littlegiqnt closed 8 months ago

littlegiqnt commented 8 months ago

Which package has the bugs?

The core library

Issue description

Setting the client afk doesn't work. I have tried:

  1. setting afk to true in presence
  2. using setAFK(true) in UserClient

Code sample

const client = new Client({
  presence: {
    status: "idle",
    afk: true,
    activities: "test",
  }
});
client.login(token);

Package version

3.1.4

Node.js version

NodeJS: v20.11.0, TypeScript: 5.3.3

Operating system

Linux (Debian)

Priority this issue should have

Medium (should be fixed soon)

Checklist

Additional Information

No response

aiko-chan-ai commented 8 months ago

try

const client = new Client({
  presence: {
    status: "idle",
    afk: true,
    activities: "test",
   since: 0
  }
});
client.login(token);
littlegiqnt commented 8 months ago

@aiko-chan-ai doesn't work, and also its type is not defined in d.ts

aiko-chan-ai commented 8 months ago

I will check it later ;-;

littlegiqnt commented 8 months ago

@aiko-chan-ai is there any progress on this? :3

aiko-chan-ai commented 8 months ago

Currently there is no progress (I still get notifications ;-;)

AdamSaketume26 commented 8 months ago

i came here to see if discord.js selfbot has afk because discord.py selfbot afk is not working recently too. maybe there is some hidden change because it works for you but not for others like littlegiqnt and me

aiko-chan-ai commented 8 months ago

Thank you for letting me know

littlegiqnt commented 8 months ago

@aiko-chan-ai It's working rn, maybe it was discord's issue, who knows ¯\_(ツ)_/¯