discord-guild-logger

1.3.5 • Public • Published

📑 Discord Guild Logger ! LetsGoz

Module to log all actions that happens on your server

💖 Features

  • Easy to use
  • Multiple server
  • 7 events
  • Works with all DJS versions

How to use

const Discord = require('discord.js'); // Requiring Discord
const intents = new Discord.Intents(); // Intents 
const client = new Discord.Client({ intents: 32767 }); // Bot

const DiscordLogger = require('discord-guild-logger'); // Requiring the module
DiscordLogger.init({
    client: client,
    logChannel: 'CHANNEL ID',
    events: {
        messageEdit: true,
        messageDelete: true,
        roleCreate: true,
        roleDelete: true,
        channelDelete: true,
        channelCreate: true,
        guildBanAdd: true,
        }
})

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

client.login('YOUR TOKEN')

📷 Output

Message Deleted Channel Created Role Created

Package Sidebar

Install

npm i discord-guild-logger

Weekly Downloads

3

Version

1.3.5

License

MIT

Unpacked Size

8.9 kB

Total Files

3

Last publish

Collaborators

  • letsgoz