New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

easycomponents.js

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

easycomponents.js

Easy components is a Discord.JS add-on that makes creating components, like buttons or select menus, easier for beginners!

unpublished
latest
npmnpm
Version
1.0.3
Version published
Maintainers
1
Created
Source

easycomponents.js

easycomponents.js is a Discord.JS add-on that makes creating components, like buttons, easier for beginners.

Creating buttons using easyButton

const { easyButton } = require('easycomponents.js');

//Slash command stuff here 

const buttonName = easyButton({ setupButton: {
   //Required
    id: 'buttonId',
    name: 'Button',
    style: 'Primary', // 'Link', 'Secondary', 'Danger', 'Success'
    
    //Optional
    linkURL: 'https://discord.com/' // WARNING: Only use this if you set "style" to Link
    emoji: '😀' // Will display an error if it is not an emoji
}}) 

await interaction.reply({ content: 'BUTTONS_MESSAGE', components: [buttonName]})

Install the latest version of easyComponents

npm i easycomponents@latest

FAQs

Package last updated on 22 Jun 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts