calculator
An Unique calculator which can be used inside Discord
Program
- Javascript
- Typescript
const simplydjs = require("simply-djs");
import simplydjs from "simply-djs";
simplydjs.calculator(interaction)
Output
Arguments:
simplydjs.calculator(
interaction: Discord.Message | Discord.CommandInteraction,
options: calcOptions
)
- interaction:
Discord.Message
|Discord.CommandInteraction
- options:
calcOptions
Options calcOptions
Parameter | Type | Required | Default | Description |
---|---|---|---|---|
buttons | calcButtons | ❌ | default buttons | Pass a calcButtons Object to customize the button |
embed | CustomizableEmbed | ❌ | default embed | Pass a CustomizableEmbed Object to customize the embed |
calcButtons options
calcButtons
Parameter | Type | Description |
---|---|---|
numbers | MessageButtonStyle | Pass a Button Style of the buttons which contains numbers |
symbols | MessageButtonStyle | Pass a Button Style of the buttons which contains special characters (or) expressions |
delete | MessageButtonStyle | Pass a Button Style of the buttons which deletes the calculator |