# discord-guild-logger

> Module to log all the actions on your server

Latest version **1.3.5** (published 2022-10-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install discord-guild-logger
pnpm add discord-guild-logger
yarn add discord-guild-logger
bun add discord-guild-logger
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.3.5 |
| Published | 2022-10-08 |
| First published | 2022-07-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 8.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | letsgoz |
| Maintainers | letsgoz |
| Keywords | discord.js, discord, logger, bot, node.js, event, logs, discord logs, moderation, spam, database |

## Links

- npm: https://www.npmjs.com/package/discord-guild-logger
- npm.io page: https://npm.io/package/discord-guild-logger

## Dependencies (1)

- [discord.js](https://npm.io/package/discord.js.md) ^13.7.0

## Alternatives

- [async-exit-hook](https://npm.io/package/async-exit-hook.md) — 3.7M weekly downloads
- [evnty](https://npm.io/package/evnty.md) — 7.2K weekly downloads
- [eleventy-plugin-asciidoc](https://npm.io/package/eleventy-plugin-asciidoc.md) — 3.5K weekly downloads
- [@jswork/next-get2get](https://npm.io/package/@jswork/next-get2get.md) — 945 weekly downloads
- [@dashersw/axon](https://npm.io/package/@dashersw/axon.md) — 934 weekly downloads

## Recent versions

- 1.3.5 (latest) — 2022-10-08
- 1.3.2 — 2022-10-08
- 1.3.1 — 2022-10-08
- 1.3.0 — 2022-10-08
- 1.2.9 — 2022-10-08
- 1.2.8 — 2022-10-08
- 1.2.7 — 2022-10-08
- 1.2.5 — 2022-10-08
- 1.2.2 — 2022-10-08
- 1.2.0 — 2022-10-08
- 1.0.6 — 2022-10-08
- 1.0.5 — 2022-10-08
- 1.0.4 — 2022-07-18
- 1.0.3 — 2022-07-18
- 1.0.2 — 2022-07-18
- … 2 more at https://npm.io/package/discord-guild-logger/versions

## README

# 📑 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
```js
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](https://cdn.discordapp.com/attachments/1028326393316118598/1028332691357188156/unknown.png)
![Channel Created](https://cdn.discordapp.com/attachments/1028326393316118598/1028332971050151936/unknown.png)
![Role Created](https://cdn.discordapp.com/attachments/1028326393316118598/1028333103376257054/unknown.png)

---
_Source: https://npm.io/package/discord-guild-logger · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
