# devland.js-invites

> Easy invite logger system with devland.js

Latest version **1.0.3** (published 2023-12-09) · Apache 2.0 license · 0 weekly downloads

## Install

```sh
npm install devland.js-invites
pnpm add devland.js-invites
yarn add devland.js-invites
bun add devland.js-invites
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2023-12-09 |
| First published | 2023-12-09 |
| Weekly downloads | 0 |
| License | Apache 2.0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 11.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Jeotique |
| Maintainers | jeotique |
| Keywords | devland, devland.js, mxtorie |

## Links

- npm: https://www.npmjs.com/package/devland.js-invites
- Repository: https://github.com/Jeotique/devland.js-invites
- Homepage: https://github.com/Jeotique/devland.js-invites#readme
- Issues: https://github.com/Jeotique/devland.js-invites/issues
- npm.io page: https://npm.io/package/devland.js-invites

## Dependencies (1)

- [devland.js](https://npm.io/package/devland.js.md) ^1.4.1

## Recent versions

- 1.0.3 (latest) — 2023-12-09
- 1.0.2 — 2023-12-09
- 1.0.1 — 2023-12-09
- 1.0.0 — 2023-12-09

## README

# devland.js-invites
## How to use ?
`npm install devland.js@latest`\
`npm install devland.js-invites@latest`

### Setup : 
````js
const {Client} = require('devland.js')
const InviteLogger = require('devland.js-invites')

const client = new Client({
    intents: ["GUILDS", "GUILDS_MEMBERS", "GUILD_INVITES"],
    token: "my_token",
    enableAllCaches: true
})
client.logger = new InviteLogger(client)
client.connect()
client.on('ready', () => {
    console.log(`${client.user.tag} connected`)
})
client.logger.on('unknowInvite', (member) => {
    console.log(`${member.user.username} joined ${member.guild.name} but I don't know how`)
})
client.logger.on('knowInvite', (member, invite) => {
    console.log(`${member.user.username} joined ${member.guild.name} with ${invite.code} by ${invite.inviter?.username}`)
})
client.logger.on('vanityInvite', (member, vanity) => {
    console.log(`${member.user.username} joined ${member.guild.name} with vanity url ${vanity.code}`)
})
````

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