Erro Criação de Bot Discord.js
O Seguinte erro está dando na hora de dar o node .
no meu projeto, estou ultilizando Visual Studio Code 2019.
Erro:
PS C:\Users\Henrique\Desktop\Programação\DISCORD APP's\degas> node .
C:\Users\Henrique\Desktop\Programação\DISCORD APP's\degas\bot.js:7
console.log(`Bot foi iniciado, com ${client.users.size} usuários, em ${client.channel.size} canais, em ${client.guilds.size} servidores.`);
^
TypeError: Cannot read property 'size' of undefined
at Client.client.on (C:\Users\Henrique\Desktop\Programação\DISCORD APP's\degas\bot.js:7:91)
at Client.emit (events.js:203:15)
at WebSocketConnection.triggerReady (C:\Users\Henrique\Desktop\Programação\DISCORD APP's\degas\node_modules\discord.js\src\client\websocket\WebSocketConnection.js:125:17)
at WebSocketConnection.checkIfReady (C:\Users\Henrique\Desktop\Programação\DISCORD APP's\degas\node_modules\discord.js\src\client\websocket\WebSocketConnection.js:141:61)
at GuildCreateHandler.handle (C:\Users\Henrique\Desktop\Programação\DISCORD APP's\degas\node_modules\discord.js\src\client\websocket\packets\handlers\GuildCreate.js:13:31)
at WebSocketPacketManager.handle (C:\Users\Henrique\Desktop\Programação\DISCORD APP's\degas\node_modules\discord.js\src\client\websocket\packets\WebSocketPacketManager.js:105:65)
at WebSocketConnection.onPacket (C:\Users\Henrique\Desktop\Programação\DISCORD APP's\degas\node_modules\discord.js\src\client\websocket\WebSocketConnection.js:333:35)
at WebSocketConnection.onMessage (C:\Users\Henrique\Desktop\Programação\DISCORD APP's\degas\node_modules\discord.js\src\client\websocket\WebSocketConnection.js:296:17)
at WebSocket.onMessage (C:\Users\Henrique\Desktop\Programação\DISCORD APP's\degas\node_modules\ws\lib\event-target.js:120:16)
at WebSocket.emit (events.js:198:13)Discussão (0)
Carregando comentários...