- Install Discord.js:
npm i discord.js
- Install the package:
npm i embedstyles
- Require the package:
const { Colors } = require('embedstyles')
- Setup an embed:
const embed = new EmbedBuilder() .setColor(Colors.success) .setTitle(`Successfully created new channel!`)
- Require the package:
const { Button } = require('embedstyles')
- Build a button:
const buttons = new ActionRowBuilder() .addComponents( new Button(*Label*, *customId*, *style*) )
- Require the package:
const { CommandBuilder } = require('embedstyles')
- Build a command:
data: new CommandBuilder(*Name*, *Description*) .String(*Name*, *Description*, *Required?*) .NSFW(false)
Command Builder - As of version 1.2.0 only supports .addStringOption() and .setNSFW()
- Require the package:
const { Reply } = require('embedstyles')
- post a reply:
await Reply(*Text*, *Ephemeral?*)