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