1.3.3 • Published 7 months ago
embedstyles v1.3.3
Embed Styles
v1.2.0 | Created By: nittwit_
Get Started:
1) Install Discord.js:
npm i discord.js
2) Install the package:
npm i embedstyles
Basic Usage:
Using Colors in an embed:
1) Require the package: const { Colors } = require('embedstyles')
2) Setup an embed:
```
const embed = new EmbedBuilder()
.setColor(Colors.success)
.setTitle(`Successfully created new channel!`)
```
Using Button:
1) Require the package: const { Button } = require('embedstyles')
2) Build a button:
const buttons = new ActionRowBuilder()
.addComponents(
new Button(*Label*, *customId*, *style*)
)
Using CommandBuilder:
1) Require the package: const { CommandBuilder } = require('embedstyles')
2) 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()
Message Replies:
1) Require the package: const { Reply } = require('embedstyles')
2) post a reply:
await Reply(*Text*, *Ephemeral?*)
```