1.0.2 • Published 3 years ago

edemarz-dropdown-roles v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

❔ 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