New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

djs-better

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

djs-better

A NPM Module that utilizes the latest discord.js version and makes it user friendly to users that don't fully understand or want to go through the hassle of discord.js

latest
Source
npmnpm
Version
1.0.5
Version published
Weekly downloads
6
500%
Maintainers
1
Weekly downloads
 
Created
Source

djs-better



Usage

const { Client } = require('discord.js');
const djs = require(`djs-better`);
const client = new Client();

// Method 1
client.utils = new djs(client);
// Method 2
const tools = new djs(client);

Functions

  • .getMention - Gets the first mention in a message object.
  • .hasPerm - Checks if a member has a permission.
  • .hasRole - Checks if a member has a role.
  • .giveRole - Gives a member a role if they do not have it already.
  • .takeRole - Takes a role from a member if they have it.
  • .registerCommand - Registers a slash command.
  • .deleteCommand - Deletes a slash command.
  • .deleteAllCommands - Deletes all slash commands.

Function Variables

  • .getMention(message)
  • .hasPerm(member, permission)
  • .hasRole(member, role)
  • .giveRole(member, role)
  • .takeRole(member, role)
  • .registerCommand(client, NAME OF COMMAND, DESCRIPTION OF COMMAND, COMMAND OPTIONS, options)
  • .deleteCommand(client, NAME OF COMMAND, guild | option)
  • .deleteAllCommands(client, guild | option)

Dependencies

  • Discord.js@13.1.0

Examples

To see examples go to examples.js

Contact

Read Me Made by IceyyM8

Keywords

discord.js

FAQs

Package last updated on 01 Sep 2021

Related posts