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
After i try lates script, new error like this Iam using latest nodejs 19.4.0 and latest discord.js 14.7.1