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

Getting "Unknown Message" on latest version #1045

Open
sm00v opened this issue Feb 9, 2024 · 8 comments
Open

Getting "Unknown Message" on latest version #1045

sm00v opened this issue Feb 9, 2024 · 8 comments
Labels
bug Something isn't working

Comments

@sm00v
Copy link

sm00v commented Feb 9, 2024

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

[email protected]

### 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_
@sm00v sm00v added the bug Something isn't working label Feb 9, 2024
@EIonv
Copy link

EIonv commented Feb 10, 2024

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.

@ghost
Copy link

ghost commented Feb 10, 2024

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

@sm00v
Copy link
Author

sm00v commented Feb 13, 2024

Bump

@lukkzien
Copy link

This worked for me : V4NSH4J/discord-mass-DM-GO#886 (comment)

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
Copy link
Owner

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
Copy link
Owner

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 added a commit that referenced this issue Jul 6, 2024
This is the `n`th time I've tried to fix this and luckily it worked
Fix: #1194 #1177 #1168 #1108 #1045

Co-Authored-By: The DT <[email protected]>
@aiko-chan-ai
Copy link
Owner

fixed

@aiko-chan-ai
Copy link
Owner

This error occurs when discord anti bot detects suspicious activity, I can't completely fix it

@ModelVNN
Copy link

Im still having this error
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants