1.0.5 • Published 3 years ago

djs-better v1.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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

Examples

To see examples go to examples.js

Contact

Read Me Made by IceyyM8

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago