Home

logo


npm dt gh v

Exceptional additions of events for Discord.Js

📰 Instructions

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 🎉