12.5.5 • Published 2 years ago

olddiscord.js-v12 v12.5.5

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
2 years ago

OLD Discord.js version 12

Using discord.js 12 on node.js now is easy


Hey! I am hugofasttero and I make this version of discord.js Now you cannot in the normal discord.js version use v12

But...

I CHANGE THAT!!!

Example code of discord.js v12

const Discord = require('olddiscord.js-v12');
const client = new Discord.Client();

client.on('ready', () => {
  console.log(`Logged in as ${client.user.tag}!`);
});

client.on('message', msg => {
  if (msg.content === 'ping') {
    msg.reply('pong');
  }
});

client.login('token');

IMPORTANT THINGS

You can use old things like:

  • discord.js opus (npm install olddiscord.js-v12 @olddiscordjs-v12/opus)
  • opusscript (npm install olddiscord.js.v12 opusscript)

Optional packages

zlib-sync for WebSocket data compression and inflation (npm install zlib-sync) erlpack for significantly faster WebSocket data (de)serialisation (npm install discord/erlpack) One of the following packages can be installed for faster voice packet encryption and decryption: sodium (npm install sodium) libsodium.js (npm install libsodium-wrappers) bufferutil for a much faster WebSocket connection (npm install bufferutil) utf-8-validate in combination with bufferutil for much faster WebSocket processing (npm install utf-8-validate)

For old things of v12