AT: October 11, 2021 1:50 AM
APP: ketchum-downloader
MESSAGE
STACK TRACE
TypeError: Cannot read property 'send' of null
at Client. (/app/src/index.js:44:23)
at Client.emit (events.js:315:20)
at Object.module.exports [as GUILD_CREATE] (/app/node_modules/discord.js/src/client/websocket/handlers/GUILD_CREATE.js:33:14)
at WebSocketManager.handlePacket (/app/node_modules/discord.js/src/client/websocket/WebSocketManager.js:384:31)
at WebSocketShard.onPacket (/app/node_modules/discord.js/src/client/websocket/WebSocketShard.js:444:22)
at WebSocketShard.onMessage (/app/node_modules/discord.js/src/client/websocket/WebSocketShard.js:301:10)
at WebSocket.onMessage (/app/node_modules/ws/lib/event-target.js:132:16)
at WebSocket.emit (events.js:315:20)
at Receiver.receiverOnMessage (/app/node_modules/ws/lib/websocket.js:825:20)
at Receiver.emit (events.js:315:20)
CODE LINES
client.on('guildCreate', server => {
const embed = utils.embedTemplate(client)
.setTitle('Thanks for adding me to your server!')
.setDescription(`I'm a downloader bot which can pull attachments and embeds into a big list to download later. \n\nFor a list of commands, send \`${prefix}help [command name]\` here or in your server!`);
>>return server.owner.send(embed);
});
client.on('message', async message => {
ERROR DETECTED ON KETCHUM-DOWNLOADER
AT: October 11, 2021 1:50 AM
APP: ketchum-downloader
MESSAGE
STACK TRACE
CODE LINES