This will only be called with the PACKET_HOOK intent enabled.
This emits the raw packet bytes, so you should create a CommIn instance and manually inspect it.
packet is a packet byte sequencebot.on('packet', (packet) => {
console.log('received packet:', packet);
});
If you are trying to get all information for logging, you are much better off with bot.onAny for previously parsed information.
This will only be called with the PACKET_HOOK intent enabled.
This emits the raw packet bytes, so you should create a CommIn instance and manually inspect it.
packet is a packet byte sequencebot.on('packet', (packet) => {
console.log('received packet:', packet);
});
If you are trying to get all information for logging, you are much better off with bot.onAny for previously parsed information.