Skip to main content

calculator

An Unique calculator which can be used inside Discord

Program​

const simplydjs = require("simply-djs");
simplydjs.calculator(interaction)

Output​

image

Arguments:​

simplydjs.calculator(
interaction: Discord.Message | Discord.CommandInteraction,
options: calcOptions
)

Options calcOptions​

ParameterTypeRequiredDefaultDescription
buttonscalcButtons❌default buttonsPass a calcButtons Object to customize the button
embedCustomizableEmbed❌default embedPass a CustomizableEmbed Object to customize the embed
calcButtons options

calcButtons​

ParameterTypeDescription
numbersMessageButtonStylePass a Button Style of the buttons which contains numbers
symbolsMessageButtonStylePass a Button Style of the buttons which contains special characters (or) expressions
deleteMessageButtonStylePass a Button Style of the buttons which deletes the calculator