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

Error bot failed to delete message #74

Open
ridx807 opened this issue Jan 18, 2023 · 0 comments
Open

Error bot failed to delete message #74

ridx807 opened this issue Jan 18, 2023 · 0 comments

Comments

@ridx807
Copy link

ridx807 commented Jan 18, 2023

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

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

Ithink this promblem because new version of discord.js but i have try old version of discord.js and get new error

~/spambot $ node bot.js
Ready to level up!
/data/data/com.termux/files/home/spambot/node_modules/discord.js/src/client/Client.js:548
      throw new TypeError('CLIENT_MISSING_INTENTS');
      ^

TypeError [CLIENT_MISSING_INTENTS]: Valid intents must be provided for the Client.
    at Client._validateOptions (/data/data/com.termux/files/home/spambot/node_modules/discord.js/src/client/Client.js:548:13)
    at new Client (/data/data/com.termux/files/home/spambot/node_modules/discord.js/src/client/Client.js:76:10)
    at Object.<anonymous> (/data/data/com.termux/files/home/spambot/bot.js:22:18)
    at Module._compile (node:internal/modules/cjs/loader:1239:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1293:10)
    at Module.load (node:internal/modules/cjs/loader:1096:32)
    at Module._load (node:internal/modules/cjs/loader:935:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:84:12)
    at node:internal/main/run_main_module:23:47 {
  [Symbol(code)]: 'CLIENT_MISSING_INTENTS'
}

Node.js v19.4.0
@ajmeese7 ajmeese7 mentioned this issue Jan 21, 2023
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

1 participant