spambot icon indicating copy to clipboard operation
spambot copied to clipboard

DiscordAPI Error

Open ridx807 opened this issue 2 years ago • 9 comments

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?

ridx807 avatar Jan 13 '23 12:01 ridx807

When do you encounter this error?

ajmeese7 avatar Jan 14 '23 19:01 ajmeese7

Start bot

ridx807 avatar Jan 15 '23 06:01 ridx807

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 avatar Jan 15 '23 06:01 ridx807

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

ridx807 avatar Jan 15 '23 06:01 ridx807

same eror bro

RidhoNGPX avatar Jan 16 '23 08:01 RidhoNGPX

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?

ajmeese7 avatar Jan 16 '23 16:01 ajmeese7

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 avatar Jan 16 '23 21:01 ridx807

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 avatar Jan 16 '23 21:01 ridx807

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```

ridx807 avatar Jan 18 '23 09:01 ridx807