3.0.0 • Published 3 years ago
pup-util v3.0.0
Install
yarn add pup-util
npm install pup-util
Embed
const { Embed } = require("pup-util");
let embed = new Embed()
.setColor('mc')
.setTitle('title')
.setDescription('description');
SafeEval
const { SafeEval } = require("pup-util");
return SafeEval('Function(x){return x.repeat(10);}("a")');
SlashCommand
const { SlashCommand } = require("pup-util");
let slashCommand = new SlashCommand()
.setName("config")
.setDescription("no description")
.addOptions(
new SlashCommand()
.setType(3)
.setName("lang")
.setDescription("no description")
.isRequired()
.addChoices(["English", "en"])
)