3.0.2 • Published 1 year ago

discord-verification v3.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Discord Verification

This package will help you create a simple verification system

Usage & Examples

Here are some examples of the different functions.

The following functions are available:

  1. Requiring the package
  2. Starting the Verification process
  3. The user entered a number
  4. The user wants to retry
  5. Verify the pin the user entered

Requiring the package

const Verification = require("discord-verification");

const verification = new Verification();

Fully Automated Verification Process

If you just want a simple verification process up and running all you need to do is use this code

The interaction provided must be a Discord.JS ButtonInteraction!

The role provided must be a Discord.JS Role!

The interaction provided must be a Discord.JS User!

await verification.verify({ interaction, role, user });

Starting the verification process

The interaction provided must be a Discord.JS ButtonInteraction!

The interaction provided must be a Discord.JS User!

// Only needed if you want every user to have a different pin
// If you leave the function blank, a random pin will be made
await verification.verificationNewPin(NEW_PIN);
await verification.verificationStart({ interaction, user });

The user entered a number

The interaction provided must be a Discord.JS ButtonInteraction!

await verification.verificationAddNumber({
  interaction,
  number: THE_NUMBER_THE_USER_ENTERED,
});

The user wants to retry

The interaction provided must be a Discord.JS ButtonInteraction!

The interaction provided must be a Discord.JS User!

await verification.verificationRetry({ interaction, user });

Verify the pin the user entered

The interaction provided must be a Discord.JS ButtonInteraction!

The role provided must be a Discord.JS Role!

await verification.verificationCheck({ interaction, role });
1.2.0

1 year ago

1.1.0

1 year ago

3.0.2

1 year ago

3.0.1

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

3.0.0

1 year ago

2.1.1

1 year ago

2.1.0

1 year ago

2.0.1

1 year ago

2.0.0

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.0-beta.2

1 year ago

1.0.0-beta.1

1 year ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago