Skip to content

FreiikDev/discord-addons

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 🎉

About

Exceptional additions of events for discord.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published