discord-addons

1.0.9 • Public • Published

logo


npm dt gh v Exceptional additions of events for Discord.Js

📰 Instructions

  • The package only work for V12 and highter
  • Install discord-addons package npm install discord-addons discord.js
  • Import discord.js and discord-addons like :
const Discord = require("discord.js");
const { Events } = require("discord-addons");
const client = new Discord.Client();

new Events(client);

// Example with guildNameUpdate

client.on("guildNameUpdate", async (guild, oldName, newName) => {
  console.log(
    `The guild with the id ${guild.id} updated his name (${oldName} => ${newName})`
  );
});

// Login

client.login("Token");

Thanks to D0wzy 🎉

/discord-addons/

    Package Sidebar

    Install

    npm i discord-addons

    Weekly Downloads

    16

    Version

    1.0.9

    License

    ISC

    Unpacked Size

    1.57 MB

    Total Files

    154

    Last publish

    Collaborators

    • freiik