0.0.28 • Published 5 years ago

disca v0.0.28

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

Logo

disca

A Discord.JS Project Builder


Discord Banner

NPM Downloads License Versiob


Installation

npm i disca -g

Usage

Creating A Project

disca

And complete the following prompts.

TypeScript

Disca does support TypeScript, but it requires the NPM package "typescript" to be installed globally

npm i typescript -g

Documentation

All Documentation Is In JavaScript

Client

@param config?: ClientConfig

ClientConfig

@param prefix?: string

Command Handler

@param client: Client
Basic Example
const commands = new CommandHandler(client);

commands.RegisterCommand({
  name: "ping",
  aliases: [],
  permissions: {
    bot: ["SEND_MESSAGES"],
    user: [],
  },
  execute: (message, client, args) => {
    message.channel.send("Pong!");
  },
});
Advanced Example
const fs = require("fs");

const commands = new CommandHandler(client);

const commandFiles = fs.readdirSync("src/Commands");

for (const file of commandFiles) {
  const command = require(`../Commands/${file}`);
  commands.RegisterCommand(command);
}

Command

@param name: string
@param aliases: string[]
@param permissions: CommandPermissions
@param execute: function(message, client, args)

CommandPermisssions

@param bot: string[]
@param user: string[]
0.0.28

5 years ago

0.0.272

5 years ago

0.0.27111

5 years ago

0.0.27112

5 years ago

0.0.2711

5 years ago

0.0.271

5 years ago

0.0.27

5 years ago

0.0.2611

5 years ago

0.0.262

5 years ago

0.0.261

5 years ago

0.0.26

5 years ago

0.0.252

5 years ago

0.0.251

5 years ago

0.0.25

5 years ago

0.0.24

5 years ago

0.0.23

5 years ago

0.0.21

5 years ago

0.0.22

5 years ago

0.0.2

5 years ago

0.0.153

5 years ago

0.0.1521

5 years ago

0.0.152

5 years ago

0.0.151

5 years ago

0.0.15

5 years ago

0.0.142

5 years ago

0.0.143

5 years ago

0.0.14

5 years ago

0.0.141

5 years ago

0.0.132

5 years ago

0.0.13

5 years ago

0.0.12

5 years ago

0.0.11

5 years ago

0.0.1

5 years ago