discord-addons
v1.0.9
Published
Exceptional additions of events for Discord.JS
Downloads
34
Maintainers
Readme
📰 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 🎉