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
703 stars 145 forks source link

Getting "Unknown Message" on latest version #1045

Open sm00v opened 4 months ago

sm00v commented 4 months ago

Which package has the bugs?

The core library

Issue description

when using the JoinGuild.js example, throwing this error. I've tried various tokens on various IP addresses and still getting the same error.


Ready! sammythebot
C:\Users\user\Downloads\disc\node_modules\discord.js-selfbot-v13\src\rest\RequestHandler.js:415
      throw new DiscordAPIError(data, res.status, request);
            ^

DiscordAPIError: Unknown Message
    at RequestHandler.execute (C:\Users\user\Downloads\disc\node_modules\discord.js-selfbot-v13\src\rest\RequestHandler.js:415:13)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async RequestHandler.push (C:\Users\user\Downloads\disc\node_modules\discord.js-selfbot-v13\src\rest\RequestHandler.js:63:14)
    at async Client.acceptInvite (C:\Users\user\Downloads\disc\node_modules\discord.js-selfbot-v13\src\client\Client.js:547:18)
    at async Client.<anonymous> (C:\Users\user\Downloads\disc\join.js:25:3) {
  method: 'post',
  path: '/invites/gaming',
  code: 10008,
  httpStatus: 403,
  requestData: {
    json: { session_id: 'ad28c5bc93604f2a61584a42ff0ca7' },
    files: [],
    headers: undefined
  },
  retries: 3,
  captcha: null
}

### Code sample

_No response_

### Package version

discord.js-selfbot-v13@3.1.4

### Node.js version

v18.12.1

### Operating system

Windows 10

### Priority this issue should have

High (immediate attention needed)

### Checklist

- [X] I have searched the open issues for duplicates.
- [X] I have shared the entire traceback.
- [X] I am using a user token (and it isn't visible in the code).

### Additional Information

_No response_
Daulaires commented 4 months ago

joininvite.txt this is a short little module I ended up coding to join guilds/servers this joininvite works by taking in the invite code from the users input prefix joininvite 123456 also for some odd reason I had to download the regular discord.js for this to work, but I didn't know even use the the discord.js package. Also probably some debug stuff you might want to remove for cleanliness. and probably recode it to what you want to use it for. My apologies for the unclean code. Just wanted to get it over with whenever I had made it.

From the looks of it probably, Although with the captcha solver, I have no idea. and no tips on that.

xthonk commented 4 months ago

I get this when trying to join a guild on my normal client. It's a token-based thing afaik

sm00v commented 4 months ago

Bump

lukkzien commented 4 months ago

This worked for me : https://github.com/V4NSH4J/discord-mass-DM-GO/issues/886#issuecomment-1660860281

Also, this happens to me after I do some changes on my acc (profile picture, username ...) If I try to join on a guild b4 doing that, I don't have any problems

aiko-chan-ai commented 4 months ago
const client = new Discord.Client({
  http: {
    headers: { "x-super-properties": "ewogICJvcyI6ICJXaW5kb3dzIiwKICAiYnJvd3NlciI6ICJEaXNjb3JkIENsaWVudCIsCiAgInJlbGVhc2VfY2hhbm5lbCI6ICJjYW5hcnkiLAogICJjbGllbnRfdmVyc2lvbiI6ICIxLjAuNDkiLAogICJvc192ZXJzaW9uIjogIjEwLjAuMjI2MjEiLAogICJvc19hcmNoIjogIng2NCIsCiAgInN5c3RlbV9sb2NhbGUiOiAiZW4tVVMiLAogICJjbGllbnRfYnVpbGRfbnVtYmVyIjogIjE1MjQ1MCIsCiAgImNsaWVudF9ldmVudF9zb3VyY2UiOiBudWxsCn0=" }
  },
});

client.on('ready', async () => {
  console.log('Ready!', client.user.tag);
});

client.login('token');

@lukkzien

aiko-chan-ai commented 4 months ago

image Log:

      Logging on with a user token is unfortunately against the Discord
      `Terms of Service` <https://support.discord.com/hc/en-us/articles/115002192352>
      and doing so might potentially get your account banned.
      Use this at your own risk.
Provided token: token.token.***************************
Preparing to connect to the gateway...
[WS => Manager] Fetched Gateway Information
    URL: wss://gateway.discord.gg
    Recommended Shards: 1
[WS => Manager] Session Limit Information       
    Total: Infinity
    Remaining: Infinity
[WS => Manager] Spawning shards: 0
[WS => Shard 0] [CONNECT]
    Gateway    : wss://gateway.discord.gg/      
    Version    : 9
    Encoding   : json
    Compression: none
    Agent      : false
[WS => Shard 0] Setting a HELLO timeout for 20s.
[WS => Shard 0] [CONNECTED] Took 447ms
[WS => Shard 0] Clearing the HELLO timeout.
[WS => Shard 0] Setting a heartbeat interval for 41250ms.
[WS => Shard 0] [IDENTIFY] Shard 0
[WS => Shard 0] [READY] Session {any} | Resume url wss://gateway-us-east1-b.discord.gg.
[WS => Shard 0] [ReadyHeartbeat] Sending a heartbeat.
[USER_REQUIRED_ACTION] All required actions have been completed.        
[READY] Received 7 guilds, 2 large guilds
[SETTING > ClientUser] Sync setting
[SETTING > ClientUser] Sync activities & status
[WS => Shard 0] Shard received all its guilds. Marking as fully ready.
Ready! ************
[WS => Shard 0] Heartbeat acknowledged, latency of 250ms.
[Invite > Guild 128591319198072832] Joined
[Invite > Guild 128591319198072832] Bypassed onboarding
[Invite > Guild 128591319198072832] Cannot bypass verify (Phone required)

image code

await client.acceptInvite('gaming')
aiko-chan-ai commented 1 day ago

fixed