embedstyles

1.3.3 • Public • Published

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?*)
    

Readme

Keywords

none

Package Sidebar

Install

npm i embedstyles

Weekly Downloads

0

Version

1.3.3

License

ISC

Unpacked Size

4.29 kB

Total Files

4

Last publish

Collaborators

  • nittwit_