/home/tatu/Discordbot-Shiro/node_modules/discord.js/src/rest/RequestHandler.js:298
throw new DiscordAPIError(data, res.status, request);
^
DiscordAPIError: 404: Not Found
at RequestHandler.execute (/home/tatu/Discordbot-Shiro/node_modules/discord.js/src/rest/RequestHandler.js:298:13)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async RequestHandler.push (/home/tatu/Discordbot-Shiro/node_modules/discord.js/src/rest/RequestHandler.js:50:14)
at async ChannelManager.fetch (/home/tatu/Discordbot-Shiro/node_modules/discord.js/src/managers/ChannelManager.js:114:18) {
method: 'get',
path: '/channels',
code: 0,
httpStatus: 404,
requestData: { json: undefined, files: [] }
}
Node.js v17.1.0
tatu@tatultawordpress:~/Discordbot-Shiro$ node bot.js
Logged in as Shiro#8963!
/home/tatu/Discordbot-Shiro/node_modules/discord.js/src/client/actions/MessageCreate.js:13
const existing = channel.messages.cache.get(data.id);
^
TypeError: Cannot read properties of undefined (reading 'cache')
at MessageCreateAction.handle (/home/tatu/Discordbot-Shiro/node_modules/discord.js/src/client/actions/MessageCreate.js:13:41)
at Object.module.exports [as MESSAGE_CREATE] (/home/tatu/Discordbot-Shiro/node_modules/discord.js/src/client/websocket/handlers/MESSAGE_CREATE.js:4:32)
at WebSocketManager.handlePacket (/home/tatu/Discordbot-Shiro/node_modules/discord.js/src/client/websocket/WebSocketManager.js:345:31)
at WebSocketShard.onPacket (/home/tatu/Discordbot-Shiro/node_modules/discord.js/src/client/websocket/WebSocketShard.js:443:22)
at WebSocketShard.onMessage (/home/tatu/Discordbot-Shiro/node_modules/discord.js/src/client/websocket/WebSocketShard.js:300:10)
at WebSocket.onMessage (/home/tatu/Discordbot-Shiro/node_modules/ws/lib/event-target.js:132:16)
at WebSocket.emit (node:events:390:28)
at Receiver.receiverOnMessage (/home/tatu/Discordbot-Shiro/node_modules/ws/lib/websocket.js:970:20)
at Receiver.emit (node:events:390:28)
at Receiver.dataMessage (/home/tatu/Discordbot-Shiro/node_modules/ws/lib/receiver.js:517:14)
Node.js v17.1.0