Socket
Book a DemoInstallSign in
Socket

discord-guild-logger

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

discord-guild-logger

Module to log all the actions on your server

latest
npmnpm
Version
1.3.5
Version published
Weekly downloads
3
Maintainers
1
Weekly downloads
 
Created
Source

📑 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

Keywords

discord.js

FAQs

Package last updated on 08 Oct 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts