0.0.6 • Published 4 years ago

invite-logger v0.0.6

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

📥 || Installation

To install the package you need:

  • You need to install Node.js.

  • You need to install discord.js.

  • Type npm i invite-logger@latest in the terminal to install the latest version of the package

📜 || Features

Functions:

  • inviteJoin allows you to get some informations about the invite such as the inviter, etc...

|| Functions:

Invite Logger Event

This event is for logging invite uses.

  • member
  • invite
  • inviter

Example:

// Define invite package
const invite = require("invite-logger")
// Define discord.js
const discord = require('discord.js')
// Create a discord client
const client = new  discord.Client()
// Define the logger
invite.inviteLogger(client) 
// The event should work
client.on('inviteJoin', (member, invite, inviter) => {
// Result
console.log(`${member.user.tag} is joined by using the code ${invite.code} wich origin is ${inviter.tag}. Times used: ${invite.uses}`)
});

invite.inviteLogger(client) if you dont put client between () after it, the event wont work

Send me a dm on discord: Flitz#5059 to send idea's or bugs!

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago