1.0.0 • Published 5 years ago

discord-premium-utils-test v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
5 years ago

What is this?

This is a simple Node.js package to see if a user is subscribed to Discord Nitro!

Installation

npm install discord-premium-utils

Example

import Discord from "discord.js";
import PremiumUtils from "discord-premium-utils";

const client = new Discord.Client()

client.once("ready", () => {
    console.log("Client is logged in!");
});

client.on("message", message => {
    if (message.content === "!checkpremium") {
        if (PremiumUtils.hasNitro(message.author)) {
            message.channel.send("You have nitro!");
        } else {
            message.channel.send("You probably don't have nitro!");
        }
    }
});

client.login("token");
1.0.0

5 years ago