1.0.0 • Published 2 years ago
@djanojzla/djs-button-calculator v1.0.0
Hey!
I'm happy to share my first Discord package with you!
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.
1.0.0
2 years ago