edemarz-dropdown-roles

1.0.2 • Public • Published

❔ Edemarz-Dropdown-Roles

A Simple Node.JS API to Configure and Use to Enhance the feature of your Discord Bot. Compatible with Discord.JS V.12 but should work on older versions.

Requirements:

  • Discord.JS (Version 12 or Older)
  • Discord-Buttons (Version 4.0.0)

📂 | Installation

npm i edemarz-dropdown-roles@latest
npm i discord-buttons@latest

📜 | Setup

const Discord = require("discord.js");
const client = new Discord.Client();
const EdemarzDropdown = require("edemarz-dropdown-roles");

🔧 | Usages

Dropdown Roles

const EdemarzDropdown = require("edemarz-dropdown-roles");
const RoleManager = new EdemarzDropdown.DropdownRoles();

RoleManager.addrole({
  Label: "This is a label",
  Emoji: "Discord Emoji To Display Which Is Optional",
  RoleID:
    "Discord Role ID (To give when they click on the specified label/button)",
});

RoleManager.addrole({
  Label: "This is a label",
  Emoji: "Discord Emoji To Display Which Is Optional",
  RoleID:
    "Discord Role ID (To give when they click on the specified label/button)",
});

RoleManager.create({
  message: message,
  content: "A message/embed to send",
  role: RoleManager,
  channelID: message.channel.id,
}); // The message is the Discord.JS Message Object, that is emitted when a user sends a message

Readme

Keywords

none

Package Sidebar

Install

npm i edemarz-dropdown-roles

Weekly Downloads

1

Version

1.0.2

License

ISC

Unpacked Size

3.83 kB

Total Files

5

Last publish

Collaborators

  • edemarz