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

DiscordAPI Error #71

Open
ridx807 opened this issue Jan 13, 2023 · 9 comments
Open

DiscordAPI Error #71

ridx807 opened this issue Jan 13, 2023 · 9 comments

Comments

@ridx807
Copy link

ridx807 commented Jan 13, 2023

DiscordAPIError: Unknown Message
    at /storage/emulated/0/spambot/node_modules/discord.js/src/client/rest/RequestHandlers/Sequential.js:85:15
    at /storage/emulated/0/spambot/node_modules/snekfetch/src/index.js:215:21
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
      path: '/api/v7/channels/727711602413142089/messages/1063436968828092526',
      code: 10008,
      method: 'DELETE'
    }

How do I fix this?

@ajmeese7
Copy link
Owner

When do you encounter this error?

@ridx807
Copy link
Author

ridx807 commented Jan 15, 2023

Start bot

@ridx807
Copy link
Author

ridx807 commented Jan 15, 2023

When do you encounter this error?

But this script work, message sender perfectly, but i thinks this script failed to delete message, i dont know exactly..

@ridx807
Copy link
Author

ridx807 commented Jan 15, 2023

I want to ask, its this script can spam and delete message?

@RidhoNGPX
Copy link

same eror bro

@ajmeese7
Copy link
Owner

I just downloaded and ran a fresh copy and couldn't replicate this error, it sends and deletes messages without issue. What version of Node do you have and what OS are you on?

@ridx807
Copy link
Author

ridx807 commented Jan 16, 2023

I just downloaded and ran a fresh copy and couldn't replicate this error, it sends and deletes messages without issue. What version of Node do you have and what OS are you on?

I run this on termux with nodejs 19.4.0

@ridx807
Copy link
Author

ridx807 commented Jan 16, 2023

I just downloaded and ran a fresh copy and couldn't replicate this error, it sends and deletes messages without issue. What version of Node do you have and what OS are you on?

I have tried on my Windows 10, and the problem is the same.

@ridx807
Copy link
Author

ridx807 commented Jan 18, 2023

I just downloaded and ran a fresh copy and couldn't replicate this error, it sends and deletes messages without issue. What version of Node do you have and what OS are you on?

After i try lates script, new error like this
Iam using latest nodejs and lates discord.js

Ready to level up!
/data/data/com.termux/files/home/spambot/node_modules/discord.js/src/client/actions/MessageDelete.js:15
      message = channel.messages.get(data.id);
                                 ^

TypeError: Cannot read properties of undefined (reading 'get')
    at MessageDeleteAction.handle (/data/data/com.termux/files/home/spambot/node_modules/discord.js/src/client/actions/MessageDelete.js:15:34)
    at MessageDeleteHandler.handle (/data/data/com.termux/files/home/spambot/node_modules/discord.js/src/client/websocket/packets/handlers/MessageDelete.js:8:51)
    at WebSocketPacketManager.handle (/data/data/com.termux/files/home/spambot/node_modules/discord.js/src/client/websocket/packets/WebSocketPacketManager.js:108:65)
    at WebSocketConnection.onPacket (/data/data/com.termux/files/home/spambot/node_modules/discord.js/src/client/websocket/WebSocketConnection.js:336:35)
    at WebSocketConnection.onMessage (/data/data/com.termux/files/home/spambot/node_modules/discord.js/src/client/websocket/WebSocketConnection.js:299:17)
    at WebSocket.onMessage (/data/data/com.termux/files/home/spambot/node_modules/ws/lib/event-target.js:120:16)
    at WebSocket.emit (node:events:513:28)
    at Receiver.receiverOnMessage (/data/data/com.termux/files/home/spambot/node_modules/ws/lib/websocket.js:789:20)
    at Receiver.emit (node:events:513:28)
    at Receiver.dataMessage (/data/data/com.termux/files/home/spambot/node_modules/ws/lib/receiver.js:422:14)

Node.js v19.4.0```

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants