1.0.0 • Published 2 years ago

@djanojzla/djs-button-calculator v1.0.0

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

Hey!

I'm happy to share my first Discord package with you!

Logo

Usage example:

index.js
const { Client, Intents } = require("discord.js");
const { Calculator } = require("@djanojzla/button-calc");
    
const client = new Client({ intents: [
    // intents...
});

// We are creating the calculator in the main file
const calculator = new Calculator(client); 
// Here we attach it to our client
client.calculator = calculator;

client.login(token);
your calculator command.js
// In your calculator command you can send the calculator using:
client.calculator.send(channel, user).catch(error => console.log(error));

See? As simple as 2+2

Contact me on Discord for support.